forked from dotnet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathduplexproxycode.vb
67 lines (62 loc) · 2.75 KB
/
duplexproxycode.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
'------------------------------------------------------------------------------
' <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>
'------------------------------------------------------------------------------
'<snippet1>
<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
'<snippet2>
'<snippet3>
<System.ServiceModel.OperationContractAttribute(IsOneWay:=True, _
Action:="http://microsoft.wcf.documentation/SampleDuplexHello/Hello")> _
Sub Hello(ByVal greeting As String)
End Interface 'SampleDuplexHello
'</snippet3>
'</snippet2>
'<snippet4>
<System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")> _
Public Interface SampleDuplexHelloCallback
'<snippet5>
<System.ServiceModel.OperationContractAttribute( _
IsOneWay:=True, _
Action:="http://microsoft.wcf.documentation/SampleDuplexHello/Reply")> _
Sub Reply(ByVal responseToGreeting As String)
End Interface 'SampleDuplexHelloCallback
'</snippet5>
'</snippet4>
'<snippet6>
<System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")> _
Public Interface SampleDuplexHelloChannel
Inherits SampleDuplexHello, System.ServiceModel.IClientChannel
End Interface 'SampleDuplexHelloChannel
'</snippet6>
'<snippet7>
<System.Diagnostics.DebuggerStepThroughAttribute(), System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")> _
Partial 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 Hello(ByVal greeting As String) Implements SampleDuplexHello.Hello
MyBase.Channel.Hello(greeting)
End Sub
End Class
'</snippet7>
'</snippet1>