﻿'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:2.0.50727.12
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------


Namespace Microsoft.Samples.UserNamePasswordValidator


    <System.ServiceModel.ServiceContractAttribute(Namespace:="http://Microsoft.Samples.UserNamePasswordValidator")>
 Public Interface ICalculator

        <System.ServiceModel.OperationContractAttribute(Action:="http://Microsoft.Samples.UserNamePasswordValidator/ICalculator/Add",
                                                        ReplyAction:="http://Microsoft.Samples.UserNamePasswordValidator/ICalculator/AddResponse")>
        Function Add(ByVal n1 As Double, ByVal n2 As Double) As Double

        <System.ServiceModel.OperationContractAttribute(Action:="http://Microsoft.Samples.UserNamePasswordValidator/ICalculator/Subtract",
                                                        ReplyAction:="http://Microsoft.Samples.UserNamePasswordValidator/ICalculator/SubtractResponse")>
        Function Subtract(ByVal n1 As Double, ByVal n2 As Double) As Double

        <System.ServiceModel.OperationContractAttribute(Action:="http://Microsoft.Samples.UserNamePasswordValidator/ICalculator/Multiply",
                                                        ReplyAction:="http://Microsoft.Samples.UserNamePasswordValidator/ICalculator/MultiplyResponse")>
        Function Multiply(ByVal n1 As Double, ByVal n2 As Double) As Double

        <System.ServiceModel.OperationContractAttribute(Action:="http://Microsoft.Samples.UserNamePasswordValidator/ICalculator/Divide",
                                                        ReplyAction:="http://Microsoft.Samples.UserNamePasswordValidator/ICalculator/DivideResponse")>
        Function Divide(ByVal n1 As Double, ByVal n2 As Double) As Double
    End Interface

	Public Interface ICalculatorChannel
		Inherits ICalculator, System.ServiceModel.IClientChannel
	End Interface

	Partial Public Class CalculatorProxy
		Inherits System.ServiceModel.ClientBase(Of ICalculator)
		Implements ICalculator

		Public Sub New()
		End Sub

		Public Sub New(ByVal endpointConfigurationName As String)
			MyBase.New(endpointConfigurationName)
		End Sub

		Public Sub New(ByVal endpointConfigurationName As String, ByVal remoteAddress As String)
			MyBase.New(endpointConfigurationName, remoteAddress)
		End Sub

        Public Sub New(ByVal endpointConfigurationName As String,
                       ByVal remoteAddress As System.ServiceModel.EndpointAddress)
            MyBase.New(endpointConfigurationName, remoteAddress)
        End Sub

        Public Sub New(ByVal binding As System.ServiceModel.Channels.Binding,
                       ByVal remoteAddress As System.ServiceModel.EndpointAddress)
            MyBase.New(binding, remoteAddress)
        End Sub

		Public Function Add(ByVal n1 As Double, ByVal n2 As Double) As Double Implements ICalculator.Add
			Return MyBase.Channel.Add(n1, n2)
		End Function

		Public Function Subtract(ByVal n1 As Double, ByVal n2 As Double) As Double Implements ICalculator.Subtract
			Return MyBase.Channel.Subtract(n1, n2)
		End Function

		Public Function Multiply(ByVal n1 As Double, ByVal n2 As Double) As Double Implements ICalculator.Multiply
			Return MyBase.Channel.Multiply(n1, n2)
		End Function

		Public Function Divide(ByVal n1 As Double, ByVal n2 As Double) As Double Implements ICalculator.Divide
			Return MyBase.Channel.Divide(n1, n2)
		End Function
	End Class
End Namespace

