59
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
1 //------------------------------------------------------------------------------
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
2 // <auto-generated>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
3 // This code was generated by a tool.
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
4 // Runtime Version:4.0.30319.17379
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
5 //
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
6 // Changes to this file may cause incorrect behavior and will be lost if
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
7 // the code is regenerated.
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
8 // </auto-generated>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
9 //------------------------------------------------------------------------------
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
10
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
11 //
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
12 // This code was auto-generated by SlSvcUtil, version 5.0.61118.0
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
13 //
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
14
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
15
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
16 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
17 [System.ServiceModel.ServiceContractAttribute(Namespace="", ConfigurationName="AuthenticationService")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
18 public interface AuthenticationService
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
19 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
20
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
21 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="urn:AuthenticationService/Authenticate", ReplyAction="urn:AuthenticationService/AuthenticateResponse")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
22 System.IAsyncResult BeginAuthenticate(string username, string password, System.AsyncCallback callback, object asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
23
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
24 bool EndAuthenticate(System.IAsyncResult result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
25
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
26 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="urn:AuthenticationService/LogOut", ReplyAction="urn:AuthenticationService/LogOutResponse")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
27 System.IAsyncResult BeginLogOut(System.AsyncCallback callback, object asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
28
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
29 bool EndLogOut(System.IAsyncResult result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
30 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
31
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
32 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
33 public interface AuthenticationServiceChannel : AuthenticationService, System.ServiceModel.IClientChannel
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
34 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
35 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
36
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
37 [System.Diagnostics.DebuggerStepThroughAttribute()]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
38 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
39 public partial class AuthenticateCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
40 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
41
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
42 private object[] results;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
43
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
44 public AuthenticateCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
45 base(exception, cancelled, userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
46 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
47 this.results = results;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
48 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
49
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
50 public bool Result
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
51 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
52 get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
53 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
54 base.RaiseExceptionIfNecessary();
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
55 return ((bool)(this.results[0]));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
56 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
57 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
58 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
59
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
60 [System.Diagnostics.DebuggerStepThroughAttribute()]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
61 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
62 public partial class LogOutCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
63 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
64
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
65 private object[] results;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
66
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
67 public LogOutCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
68 base(exception, cancelled, userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
69 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
70 this.results = results;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
71 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
72
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
73 public bool Result
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
74 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
75 get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
76 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
77 base.RaiseExceptionIfNecessary();
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
78 return ((bool)(this.results[0]));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
79 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
80 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
81 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
82
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
83 [System.Diagnostics.DebuggerStepThroughAttribute()]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
84 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
85 public partial class AuthenticationServiceClient : System.ServiceModel.ClientBase<AuthenticationService>, AuthenticationService
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
86 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
87
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
88 private BeginOperationDelegate onBeginAuthenticateDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
89
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
90 private EndOperationDelegate onEndAuthenticateDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
91
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
92 private System.Threading.SendOrPostCallback onAuthenticateCompletedDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
93
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
94 private BeginOperationDelegate onBeginLogOutDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
95
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
96 private EndOperationDelegate onEndLogOutDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
97
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
98 private System.Threading.SendOrPostCallback onLogOutCompletedDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
99
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
100 private BeginOperationDelegate onBeginOpenDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
101
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
102 private EndOperationDelegate onEndOpenDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
103
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
104 private System.Threading.SendOrPostCallback onOpenCompletedDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
105
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
106 private BeginOperationDelegate onBeginCloseDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
107
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
108 private EndOperationDelegate onEndCloseDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
109
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
110 private System.Threading.SendOrPostCallback onCloseCompletedDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
111
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
112 public AuthenticationServiceClient()
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
113 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
114 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
115
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
116 public AuthenticationServiceClient(string endpointConfigurationName) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
117 base(endpointConfigurationName)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
118 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
119 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
120
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
121 public AuthenticationServiceClient(string endpointConfigurationName, string remoteAddress) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
122 base(endpointConfigurationName, remoteAddress)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
123 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
124 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
125
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
126 public AuthenticationServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
127 base(endpointConfigurationName, remoteAddress)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
128 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
129 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
130
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
131 public AuthenticationServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
132 base(binding, remoteAddress)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
133 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
134 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
135
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
136 public System.Net.CookieContainer CookieContainer
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
137 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
138 get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
139 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
140 System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty<System.ServiceModel.Channels.IHttpCookieContainerManager>();
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
141 if ((httpCookieContainerManager != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
142 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
143 return httpCookieContainerManager.CookieContainer;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
144 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
145 else
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
146 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
147 return null;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
148 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
149 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
150 set
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
151 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
152 System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty<System.ServiceModel.Channels.IHttpCookieContainerManager>();
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
153 if ((httpCookieContainerManager != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
154 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
155 httpCookieContainerManager.CookieContainer = value;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
156 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
157 else
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
158 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
159 throw new System.InvalidOperationException("Unable to set the CookieContainer. Please make sure the binding contains an HttpC" +
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
160 "ookieContainerBindingElement.");
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
161 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
162 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
163 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
164
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
165 public event System.EventHandler<AuthenticateCompletedEventArgs> AuthenticateCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
166
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
167 public event System.EventHandler<LogOutCompletedEventArgs> LogOutCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
168
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
169 public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> OpenCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
170
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
171 public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> CloseCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
172
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
173 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
174 System.IAsyncResult AuthenticationService.BeginAuthenticate(string username, string password, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
175 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
176 return base.Channel.BeginAuthenticate(username, password, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
177 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
178
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
179 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
180 bool AuthenticationService.EndAuthenticate(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
181 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
182 return base.Channel.EndAuthenticate(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
183 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
184
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
185 private System.IAsyncResult OnBeginAuthenticate(object[] inValues, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
186 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
187 string username = ((string)(inValues[0]));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
188 string password = ((string)(inValues[1]));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
189 return ((AuthenticationService)(this)).BeginAuthenticate(username, password, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
190 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
191
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
192 private object[] OnEndAuthenticate(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
193 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
194 bool retVal = ((AuthenticationService)(this)).EndAuthenticate(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
195 return new object[] {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
196 retVal};
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
197 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
198
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
199 private void OnAuthenticateCompleted(object state)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
200 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
201 if ((this.AuthenticateCompleted != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
202 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
203 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
204 this.AuthenticateCompleted(this, new AuthenticateCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
205 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
206 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
207
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
208 public void AuthenticateAsync(string username, string password)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
209 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
210 this.AuthenticateAsync(username, password, null);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
211 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
212
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
213 public void AuthenticateAsync(string username, string password, object userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
214 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
215 if ((this.onBeginAuthenticateDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
216 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
217 this.onBeginAuthenticateDelegate = new BeginOperationDelegate(this.OnBeginAuthenticate);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
218 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
219 if ((this.onEndAuthenticateDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
220 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
221 this.onEndAuthenticateDelegate = new EndOperationDelegate(this.OnEndAuthenticate);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
222 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
223 if ((this.onAuthenticateCompletedDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
224 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
225 this.onAuthenticateCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnAuthenticateCompleted);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
226 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
227 base.InvokeAsync(this.onBeginAuthenticateDelegate, new object[] {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
228 username,
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
229 password}, this.onEndAuthenticateDelegate, this.onAuthenticateCompletedDelegate, userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
230 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
231
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
232 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
233 System.IAsyncResult AuthenticationService.BeginLogOut(System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
234 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
235 return base.Channel.BeginLogOut(callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
236 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
237
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
238 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
239 bool AuthenticationService.EndLogOut(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
240 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
241 return base.Channel.EndLogOut(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
242 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
243
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
244 private System.IAsyncResult OnBeginLogOut(object[] inValues, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
245 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
246 return ((AuthenticationService)(this)).BeginLogOut(callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
247 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
248
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
249 private object[] OnEndLogOut(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
250 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
251 bool retVal = ((AuthenticationService)(this)).EndLogOut(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
252 return new object[] {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
253 retVal};
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
254 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
255
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
256 private void OnLogOutCompleted(object state)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
257 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
258 if ((this.LogOutCompleted != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
259 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
260 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
261 this.LogOutCompleted(this, new LogOutCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
262 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
263 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
264
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
265 public void LogOutAsync()
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
266 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
267 this.LogOutAsync(null);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
268 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
269
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
270 public void LogOutAsync(object userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
271 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
272 if ((this.onBeginLogOutDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
273 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
274 this.onBeginLogOutDelegate = new BeginOperationDelegate(this.OnBeginLogOut);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
275 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
276 if ((this.onEndLogOutDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
277 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
278 this.onEndLogOutDelegate = new EndOperationDelegate(this.OnEndLogOut);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
279 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
280 if ((this.onLogOutCompletedDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
281 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
282 this.onLogOutCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnLogOutCompleted);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
283 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
284 base.InvokeAsync(this.onBeginLogOutDelegate, null, this.onEndLogOutDelegate, this.onLogOutCompletedDelegate, userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
285 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
286
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
287 private System.IAsyncResult OnBeginOpen(object[] inValues, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
288 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
289 return ((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
290 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
291
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
292 private object[] OnEndOpen(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
293 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
294 ((System.ServiceModel.ICommunicationObject)(this)).EndOpen(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
295 return null;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
296 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
297
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
298 private void OnOpenCompleted(object state)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
299 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
300 if ((this.OpenCompleted != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
301 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
302 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
303 this.OpenCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
304 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
305 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
306
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
307 public void OpenAsync()
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
308 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
309 this.OpenAsync(null);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
310 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
311
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
312 public void OpenAsync(object userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
313 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
314 if ((this.onBeginOpenDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
315 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
316 this.onBeginOpenDelegate = new BeginOperationDelegate(this.OnBeginOpen);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
317 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
318 if ((this.onEndOpenDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
319 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
320 this.onEndOpenDelegate = new EndOperationDelegate(this.OnEndOpen);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
321 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
322 if ((this.onOpenCompletedDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
323 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
324 this.onOpenCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnOpenCompleted);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
325 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
326 base.InvokeAsync(this.onBeginOpenDelegate, null, this.onEndOpenDelegate, this.onOpenCompletedDelegate, userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
327 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
328
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
329 private System.IAsyncResult OnBeginClose(object[] inValues, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
330 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
331 return ((System.ServiceModel.ICommunicationObject)(this)).BeginClose(callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
332 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
333
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
334 private object[] OnEndClose(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
335 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
336 ((System.ServiceModel.ICommunicationObject)(this)).EndClose(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
337 return null;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
338 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
339
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
340 private void OnCloseCompleted(object state)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
341 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
342 if ((this.CloseCompleted != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
343 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
344 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
345 this.CloseCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
346 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
347 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
348
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
349 public void CloseAsync()
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
350 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
351 this.CloseAsync(null);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
352 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
353
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
354 public void CloseAsync(object userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
355 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
356 if ((this.onBeginCloseDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
357 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
358 this.onBeginCloseDelegate = new BeginOperationDelegate(this.OnBeginClose);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
359 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
360 if ((this.onEndCloseDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
361 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
362 this.onEndCloseDelegate = new EndOperationDelegate(this.OnEndClose);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
363 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
364 if ((this.onCloseCompletedDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
365 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
366 this.onCloseCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnCloseCompleted);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
367 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
368 base.InvokeAsync(this.onBeginCloseDelegate, null, this.onEndCloseDelegate, this.onCloseCompletedDelegate, userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
369 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
370
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
371 protected override AuthenticationService CreateChannel()
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
372 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
373 return new AuthenticationServiceClientChannel(this);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
374 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
375
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
376 private class AuthenticationServiceClientChannel : ChannelBase<AuthenticationService>, AuthenticationService
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
377 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
378
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
379 public AuthenticationServiceClientChannel(System.ServiceModel.ClientBase<AuthenticationService> client) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
380 base(client)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
381 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
382 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
383
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
384 public System.IAsyncResult BeginAuthenticate(string username, string password, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
385 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
386 object[] _args = new object[2];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
387 _args[0] = username;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
388 _args[1] = password;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
389 System.IAsyncResult _result = base.BeginInvoke("Authenticate", _args, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
390 return _result;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
391 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
392
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
393 public bool EndAuthenticate(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
394 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
395 object[] _args = new object[0];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
396 bool _result = ((bool)(base.EndInvoke("Authenticate", _args, result)));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
397 return _result;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
398 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
399
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
400 public System.IAsyncResult BeginLogOut(System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
401 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
402 object[] _args = new object[0];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
403 System.IAsyncResult _result = base.BeginInvoke("LogOut", _args, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
404 return _result;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
405 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
406
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
407 public bool EndLogOut(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
408 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
409 object[] _args = new object[0];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
410 bool _result = ((bool)(base.EndInvoke("LogOut", _args, result)));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
411 return _result;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
412 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
413 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
414 }
|