📄 reference.cs
字号:
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.42
//
// 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 2.0.50727.42.
//
#pragma warning disable 1591
namespace Wahoo.WahooWebService {
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="WahooScoresServiceSoap", Namespace="http://sellsbrothers.com/WahooScoresService/")]
public partial class WahooScoresService : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback RegisterScoreOperationCompleted;
private System.Threading.SendOrPostCallback GetScoresOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
/// <remarks/>
public WahooScoresService() {
this.Url = global::Wahoo.Properties.Settings.Default.Wahoo_WahooWebService_WahooScoresService;
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 RegisterScoreCompletedEventHandler RegisterScoreCompleted;
/// <remarks/>
public event GetScoresCompletedEventHandler GetScoresCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://sellsbrothers.com/WahooScoresService/RegisterScore", RequestNamespace="http://sellsbrothers.com/WahooScoresService/", ResponseNamespace="http://sellsbrothers.com/WahooScoresService/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void RegisterScore(string name, int score) {
this.Invoke("RegisterScore", new object[] {
name,
score});
}
/// <remarks/>
public void RegisterScoreAsync(string name, int score) {
this.RegisterScoreAsync(name, score, null);
}
/// <remarks/>
public void RegisterScoreAsync(string name, int score, object userState) {
if ((this.RegisterScoreOperationCompleted == null)) {
this.RegisterScoreOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRegisterScoreOperationCompleted);
}
this.InvokeAsync("RegisterScore", new object[] {
name,
score}, this.RegisterScoreOperationCompleted, userState);
}
private void OnRegisterScoreOperationCompleted(object arg) {
if ((this.RegisterScoreCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.RegisterScoreCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://sellsbrothers.com/WahooScoresService/GetScores", RequestNamespace="http://sellsbrothers.com/WahooScoresService/", ResponseNamespace="http://sellsbrothers.com/WahooScoresService/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
public WahooScore[] GetScores() {
object[] results = this.Invoke("GetScores", new object[0]);
return ((WahooScore[])(results[0]));
}
/// <remarks/>
public void GetScoresAsync() {
this.GetScoresAsync(null);
}
/// <remarks/>
public void GetScoresAsync(object userState) {
if ((this.GetScoresOperationCompleted == null)) {
this.GetScoresOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetScoresOperationCompleted);
}
this.InvokeAsync("GetScores", new object[0], this.GetScoresOperationCompleted, userState);
}
private void OnGetScoresOperationCompleted(object arg) {
if ((this.GetScoresCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetScoresCompleted(this, new GetScoresCompletedEventArgs(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.Xml", "2.0.50727.42")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://sellsbrothers.com/WahooScoresService/")]
public partial class WahooScore {
private string nameField;
private int scoreField;
/// <remarks/>
public string Name {
get {
return this.nameField;
}
set {
this.nameField = value;
}
}
/// <remarks/>
public int Score {
get {
return this.scoreField;
}
set {
this.scoreField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
public delegate void RegisterScoreCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
public delegate void GetScoresCompletedEventHandler(object sender, GetScoresCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetScoresCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetScoresCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public WahooScore[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((WahooScore[])(this.results[0]));
}
}
}
}
#pragma warning restore 1591
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -