?? reference.cs
字號:
?//------------------------------------------------------------------------------
// <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 + -