/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
samples/snippets/visualbasic/VS_Snippets_CFX/callbackbehaviorattribute/vb/proxycode.vb
61 строка
3 KB
Andy De George
Move snippets from samples repo to this repo (#17296)
03 мар 2020, 19:23
Не верифицирован
03 мар 2020, 19:23
dbbeda1
Код
Авторство
О чём код?
'------------------------------------------------------------------------------ ' <auto-generated> ' This code was generated by a tool. ' Runtime Version:2.0.50727.42 ' ' Changes to this file may cause incorrect behavior and will be lost if ' the code is regenerated. ' </auto-generated> '------------------------------------------------------------------------------ <System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0"), System.ServiceModel.ServiceContractAttribute(Namespace:="http://microsoft.wcf.documentation", ConfigurationName:="SampleDuplexHello", CallbackContract:=GetType(SampleDuplexHelloCallback), SessionMode:=System.ServiceModel.SessionMode.Required)> _ Public Interface SampleDuplexHello <System.ServiceModel.OperationContractAttribute(IsOneWay:=True, Action:="http://microsoft.wcf.documentation/SampleDuplexHello/Hello")> _ Sub Hello(ByVal greeting As String) End Interface <System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")> _ Public Interface SampleDuplexHelloCallback <System.ServiceModel.OperationContractAttribute(IsOneWay:=True, Action:="http://microsoft.wcf.documentation/SampleDuplexHello/Reply")> _ Sub Reply(ByVal responseToGreeting As String) End Interface <System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")> _ Public Interface SampleDuplexHelloChannel Inherits SampleDuplexHello, System.ServiceModel.IClientChannel End Interface <System.Diagnostics.DebuggerStepThroughAttribute(), System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")> _ Partial Public Class SampleDuplexHelloClient Inherits System.ServiceModel.DuplexClientBase(Of SampleDuplexHello) Implements SampleDuplexHello Public Sub New(ByVal callbackInstance As System.ServiceModel.InstanceContext) MyBase.New(callbackInstance) End Sub Public Sub New(ByVal callbackInstance As System.ServiceModel.InstanceContext, ByVal endpointConfigurationName As String) MyBase.New(callbackInstance, endpointConfigurationName) End Sub Public Sub New(ByVal callbackInstance As System.ServiceModel.InstanceContext, ByVal endpointConfigurationName As String, ByVal remoteAddress As String) MyBase.New(callbackInstance, endpointConfigurationName, remoteAddress) End Sub Public Sub New(ByVal callbackInstance As System.ServiceModel.InstanceContext, ByVal endpointConfigurationName As String, ByVal remoteAddress As System.ServiceModel.EndpointAddress) MyBase.New(callbackInstance, endpointConfigurationName, remoteAddress) End Sub Public Sub New(ByVal callbackInstance As System.ServiceModel.InstanceContext, ByVal binding As System.ServiceModel.Channels.Binding, ByVal remoteAddress As System.ServiceModel.EndpointAddress) MyBase.New(callbackInstance, binding, remoteAddress) End Sub Public Sub Hello(ByVal greeting As String) Implements SampleDuplexHello.Hello MyBase.Channel.Hello(greeting) End Sub End Class