//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.4927 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ // // This source code was auto-generated by Microsoft.VSDesigner, Version 2.0.50727.4927. // #pragma warning disable 1591 namespace TestDealerService.WSService { using System.Diagnostics; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; using System.Xml.Serialization; /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="ServiceSoap", Namespace="http://tempuri.org/")] public partial class Service : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback LogInOperationCompleted; private System.Threading.SendOrPostCallback IsLoggedInOperationCompleted; private System.Threading.SendOrPostCallback LogOutOperationCompleted; private bool useDefaultCredentialsSetExplicitly; /// public Service() { this.Url = global::TestDealerService.Properties.Settings.Default.TestDealerService_ServiceTest_Service; if ((this.IsLocalFileSystemWebService(this.Url) == true)) { this.UseDefaultCredentials = true; this.useDefaultCredentialsSetExplicitly = false; } else { this.useDefaultCredentialsSetExplicitly = true; } } public new string Url { get { return base.Url; } set { if ((((this.IsLocalFileSystemWebService(base.Url) == true) && (this.useDefaultCredentialsSetExplicitly == false)) && (this.IsLocalFileSystemWebService(value) == false))) { base.UseDefaultCredentials = false; } base.Url = value; } } public new bool UseDefaultCredentials { get { return base.UseDefaultCredentials; } set { base.UseDefaultCredentials = value; this.useDefaultCredentialsSetExplicitly = true; } } /// public event LogInCompletedEventHandler LogInCompleted; /// public event IsLoggedInCompletedEventHandler IsLoggedInCompleted; /// public event LogOutCompletedEventHandler LogOutCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/LogIn", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public bool LogIn(string UserName, string Password) { object[] results = this.Invoke("LogIn", new object[] { UserName, Password}); return ((bool)(results[0])); } /// public void LogInAsync(string UserName, string Password) { this.LogInAsync(UserName, Password, null); } /// public void LogInAsync(string UserName, string Password, object userState) { if ((this.LogInOperationCompleted == null)) { this.LogInOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLogInOperationCompleted); } this.InvokeAsync("LogIn", new object[] { UserName, Password}, this.LogInOperationCompleted, userState); } private void OnLogInOperationCompleted(object arg) { if ((this.LogInCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.LogInCompleted(this, new LogInCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/IsLoggedIn", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public bool IsLoggedIn() { object[] results = this.Invoke("IsLoggedIn", new object[0]); return ((bool)(results[0])); } /// public void IsLoggedInAsync() { this.IsLoggedInAsync(null); } /// public void IsLoggedInAsync(object userState) { if ((this.IsLoggedInOperationCompleted == null)) { this.IsLoggedInOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIsLoggedInOperationCompleted); } this.InvokeAsync("IsLoggedIn", new object[0], this.IsLoggedInOperationCompleted, userState); } private void OnIsLoggedInOperationCompleted(object arg) { if ((this.IsLoggedInCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.IsLoggedInCompleted(this, new IsLoggedInCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/LogOut", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public void LogOut() { this.Invoke("LogOut", new object[0]); } /// public void LogOutAsync() { this.LogOutAsync(null); } /// public void LogOutAsync(object userState) { if ((this.LogOutOperationCompleted == null)) { this.LogOutOperationCompleted = new System.Threading.SendOrPostCallback(this.OnLogOutOperationCompleted); } this.InvokeAsync("LogOut", new object[0], this.LogOutOperationCompleted, userState); } private void OnLogOutOperationCompleted(object arg) { if ((this.LogOutCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.LogOutCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } private bool IsLocalFileSystemWebService(string url) { if (((url == null) || (url == string.Empty))) { return false; } System.Uri wsUri = new System.Uri(url); if (((wsUri.Port >= 1024) && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) { return true; } return false; } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")] public delegate void LogInCompletedEventHandler(object sender, LogInCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class LogInCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal LogInCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public bool Result { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")] public delegate void IsLoggedInCompletedEventHandler(object sender, IsLoggedInCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class IsLoggedInCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal IsLoggedInCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public bool Result { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.4927")] public delegate void LogOutCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); } #pragma warning restore 1591