⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reference.cs

📁 中国象棋网络版C#源码 Visual studio 2005,C#开发 中国象棋网络版
💻 CS
📖 第 1 页 / 共 3 页
字号:
//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行库版本:2.0.50727.42
//
//     对此文件的更改可能会导致不正确的行为,并且如果
//     重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------

// 
// 此源代码是由 Microsoft.VSDesigner 2.0.50727.42 版自动生成。
// 
#pragma warning disable 1591

namespace GameWorld.RoomService {
    using System.Diagnostics;
    using System.Web.Services;
    using System.ComponentModel;
    using System.Web.Services.Protocols;
    using System;
    using System.Xml.Serialization;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="RoomServiceSoap", Namespace="http://hawkwolf.com/webservices/")]
    public partial class RoomService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback LoginOperationCompleted;
        
        private CredentialSoapHeader credentialSoapHeaderValueField;
        
        private System.Threading.SendOrPostCallback GetGamesOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetAllRoomsOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetRoomsOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetTablesOperationCompleted;
        
        private System.Threading.SendOrPostCallback HelloWorldOperationCompleted;
        
        private System.Threading.SendOrPostCallback StartMatchOperationCompleted;
        
        private System.Threading.SendOrPostCallback EndMatchOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetMessageOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public RoomService() {
            this.Url = global::GameWorld.Properties.Settings.Default.GameWorld_RoomService_RoomService;
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }
        
        public CredentialSoapHeader CredentialSoapHeaderValue {
            get {
                return this.credentialSoapHeaderValueField;
            }
            set {
                this.credentialSoapHeaderValueField = value;
            }
        }
        
        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 LoginCompletedEventHandler LoginCompleted;
        
        /// <remarks/>
        public event GetGamesCompletedEventHandler GetGamesCompleted;
        
        /// <remarks/>
        public event GetAllRoomsCompletedEventHandler GetAllRoomsCompleted;
        
        /// <remarks/>
        public event GetRoomsCompletedEventHandler GetRoomsCompleted;
        
        /// <remarks/>
        public event GetTablesCompletedEventHandler GetTablesCompleted;
        
        /// <remarks/>
        public event HelloWorldCompletedEventHandler HelloWorldCompleted;
        
        /// <remarks/>
        public event StartMatchCompletedEventHandler StartMatchCompleted;
        
        /// <remarks/>
        public event EndMatchCompletedEventHandler EndMatchCompleted;
        
        /// <remarks/>
        public event GetMessageCompletedEventHandler GetMessageCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://hawkwolf.com/webservices/Login", RequestNamespace="http://hawkwolf.com/webservices/", ResponseNamespace="http://hawkwolf.com/webservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string Login(string username, string password) {
            object[] results = this.Invoke("Login", new object[] {
                        username,
                        password});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void LoginAsync(string username, string password) {
            this.LoginAsync(username, password, null);
        }
        
        /// <remarks/>
        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));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapHeaderAttribute("CredentialSoapHeaderValue")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://hawkwolf.com/webservices/GetGames", RequestNamespace="http://hawkwolf.com/webservices/", ResponseNamespace="http://hawkwolf.com/webservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetGames() {
            object[] results = this.Invoke("GetGames", new object[0]);
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GetGamesAsync() {
            this.GetGamesAsync(null);
        }
        
        /// <remarks/>
        public void GetGamesAsync(object userState) {
            if ((this.GetGamesOperationCompleted == null)) {
                this.GetGamesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetGamesOperationCompleted);
            }
            this.InvokeAsync("GetGames", new object[0], this.GetGamesOperationCompleted, userState);
        }
        
        private void OnGetGamesOperationCompleted(object arg) {
            if ((this.GetGamesCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetGamesCompleted(this, new GetGamesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapHeaderAttribute("CredentialSoapHeaderValue")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://hawkwolf.com/webservices/GetAllRooms", RequestNamespace="http://hawkwolf.com/webservices/", ResponseNamespace="http://hawkwolf.com/webservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetAllRooms() {
            object[] results = this.Invoke("GetAllRooms", new object[0]);
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GetAllRoomsAsync() {
            this.GetAllRoomsAsync(null);
        }
        
        /// <remarks/>
        public void GetAllRoomsAsync(object userState) {
            if ((this.GetAllRoomsOperationCompleted == null)) {
                this.GetAllRoomsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAllRoomsOperationCompleted);
            }
            this.InvokeAsync("GetAllRooms", new object[0], this.GetAllRoomsOperationCompleted, userState);
        }
        
        private void OnGetAllRoomsOperationCompleted(object arg) {
            if ((this.GetAllRoomsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetAllRoomsCompleted(this, new GetAllRoomsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapHeaderAttribute("CredentialSoapHeaderValue")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://hawkwolf.com/webservices/GetRooms", RequestNamespace="http://hawkwolf.com/webservices/", ResponseNamespace="http://hawkwolf.com/webservices/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetRooms(string gameid) {
            object[] results = this.Invoke("GetRooms", new object[] {
                        gameid});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public void GetRoomsAsync(string gameid) {
            this.GetRoomsAsync(gameid, null);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -