/
aprogrammer
/
dotnet-docs
Обзор
Документация
Войти
/
aprogrammer
/
dotnet-docs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
samples/snippets/visualbasic/VS_Snippets_CFX/operationcontextscope/vb/proxycode.vb
63 строки
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:="ISampleService", CallbackContract:=GetType(ISampleServiceCallback), _ SessionMode:=System.ServiceModel.SessionMode.Required)> _ Public Interface ISampleService <System.ServiceModel.OperationContractAttribute(IsOneWay:=True, Action:="http://Microsoft.WCF.Documentation/ISampleService/Push")> _ Sub Push(ByVal msg As String) End Interface <System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")> _ Public Interface ISampleServiceCallback <System.ServiceModel.OperationContractAttribute(IsOneWay:=True, Action:="http://Microsoft.WCF.Documentation/ISampleService/PushBack")> _ Sub PushBack(ByVal msg As String) End Interface <System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")> _ Public Interface ISampleServiceChannel Inherits ISampleService, System.ServiceModel.IClientChannel End Interface <DebuggerStepThroughAttribute(), System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")> _ Partial Public Class SampleServiceClient Inherits System.ServiceModel.DuplexClientBase(Of ISampleService) Implements ISampleService 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 Push(ByVal msg As String) Implements ISampleService.Push MyBase.Channel.Push(msg) End Sub End Class