/NetDisk/WebApp/Web References/SSOService/Reference.cs
http://mobileshop.codeplex.com · C# · 270 lines · 190 code · 44 blank · 36 comment · 28 complexity · 7708538e2e2cea1ad8df0b46d3cedec3 MD5 · raw file
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- // Runtime Version:4.0.30319.239
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- //
- // This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.239.
- //
- #pragma warning disable 1591
- namespace WebApp.SSOService {
- using System;
- using System.Web.Services;
- using System.Diagnostics;
- using System.Web.Services.Protocols;
- using System.ComponentModel;
- using System.Xml.Serialization;
-
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.ComponentModel.DesignerCategoryAttribute("code")]
- [System.Web.Services.WebServiceBindingAttribute(Name="AuthSoap", Namespace="http://tempuri.org/")]
- public partial class Auth : System.Web.Services.Protocols.SoapHttpClientProtocol {
-
- private System.Threading.SendOrPostCallback GetLogonUrlOperationCompleted;
-
- private System.Threading.SendOrPostCallback GetLogoutUrlOperationCompleted;
-
- private System.Threading.SendOrPostCallback GetCurrentUserOperationCompleted;
-
- private bool useDefaultCredentialsSetExplicitly;
-
- /// <remarks/>
- public Auth() {
- this.Url = global::WebApp.Properties.Settings.Default.WebApp_SSOService_Auth;
- 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;
- }
- }
-
- /// <remarks/>
- public event GetLogonUrlCompletedEventHandler GetLogonUrlCompleted;
-
- /// <remarks/>
- public event GetLogoutUrlCompletedEventHandler GetLogoutUrlCompleted;
-
- /// <remarks/>
- public event GetCurrentUserCompletedEventHandler GetCurrentUserCompleted;
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetLogonUrl", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public string GetLogonUrl(string gotoUrl) {
- object[] results = this.Invoke("GetLogonUrl", new object[] {
- gotoUrl});
- return ((string)(results[0]));
- }
-
- /// <remarks/>
- public void GetLogonUrlAsync(string gotoUrl) {
- this.GetLogonUrlAsync(gotoUrl, null);
- }
-
- /// <remarks/>
- public void GetLogonUrlAsync(string gotoUrl, object userState) {
- if ((this.GetLogonUrlOperationCompleted == null)) {
- this.GetLogonUrlOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetLogonUrlOperationCompleted);
- }
- this.InvokeAsync("GetLogonUrl", new object[] {
- gotoUrl}, this.GetLogonUrlOperationCompleted, userState);
- }
-
- private void OnGetLogonUrlOperationCompleted(object arg) {
- if ((this.GetLogonUrlCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.GetLogonUrlCompleted(this, new GetLogonUrlCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetLogoutUrl", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public string GetLogoutUrl(string gotoUrl) {
- object[] results = this.Invoke("GetLogoutUrl", new object[] {
- gotoUrl});
- return ((string)(results[0]));
- }
-
- /// <remarks/>
- public void GetLogoutUrlAsync(string gotoUrl) {
- this.GetLogoutUrlAsync(gotoUrl, null);
- }
-
- /// <remarks/>
- public void GetLogoutUrlAsync(string gotoUrl, object userState) {
- if ((this.GetLogoutUrlOperationCompleted == null)) {
- this.GetLogoutUrlOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetLogoutUrlOperationCompleted);
- }
- this.InvokeAsync("GetLogoutUrl", new object[] {
- gotoUrl}, this.GetLogoutUrlOperationCompleted, userState);
- }
-
- private void OnGetLogoutUrlOperationCompleted(object arg) {
- if ((this.GetLogoutUrlCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.GetLogoutUrlCompleted(this, new GetLogoutUrlCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetCurrentUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
- public string GetCurrentUser(string cookieValue) {
- object[] results = this.Invoke("GetCurrentUser", new object[] {
- cookieValue});
- return ((string)(results[0]));
- }
-
- /// <remarks/>
- public void GetCurrentUserAsync(string cookieValue) {
- this.GetCurrentUserAsync(cookieValue, null);
- }
-
- /// <remarks/>
- public void GetCurrentUserAsync(string cookieValue, object userState) {
- if ((this.GetCurrentUserOperationCompleted == null)) {
- this.GetCurrentUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCurrentUserOperationCompleted);
- }
- this.InvokeAsync("GetCurrentUser", new object[] {
- cookieValue}, this.GetCurrentUserOperationCompleted, userState);
- }
-
- private void OnGetCurrentUserOperationCompleted(object arg) {
- if ((this.GetCurrentUserCompleted != null)) {
- System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
- this.GetCurrentUserCompleted(this, new GetCurrentUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
- }
- }
-
- /// <remarks/>
- 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;
- }
- }
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
- public delegate void GetLogonUrlCompletedEventHandler(object sender, GetLogonUrlCompletedEventArgs e);
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.ComponentModel.DesignerCategoryAttribute("code")]
- public partial class GetLogonUrlCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
-
- private object[] results;
-
- internal GetLogonUrlCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
- base(exception, cancelled, userState) {
- this.results = results;
- }
-
- /// <remarks/>
- public string Result {
- get {
- this.RaiseExceptionIfNecessary();
- return ((string)(this.results[0]));
- }
- }
- }
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
- public delegate void GetLogoutUrlCompletedEventHandler(object sender, GetLogoutUrlCompletedEventArgs e);
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.ComponentModel.DesignerCategoryAttribute("code")]
- public partial class GetLogoutUrlCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
-
- private object[] results;
-
- internal GetLogoutUrlCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
- base(exception, cancelled, userState) {
- this.results = results;
- }
-
- /// <remarks/>
- public string Result {
- get {
- this.RaiseExceptionIfNecessary();
- return ((string)(this.results[0]));
- }
- }
- }
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
- public delegate void GetCurrentUserCompletedEventHandler(object sender, GetCurrentUserCompletedEventArgs e);
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")]
- [System.Diagnostics.DebuggerStepThroughAttribute()]
- [System.ComponentModel.DesignerCategoryAttribute("code")]
- public partial class GetCurrentUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
-
- private object[] results;
-
- internal GetCurrentUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
- base(exception, cancelled, userState) {
- this.results = results;
- }
-
- /// <remarks/>
- public string Result {
- get {
- this.RaiseExceptionIfNecessary();
- return ((string)(this.results[0]));
- }
- }
- }
- }
- #pragma warning restore 1591