//------------------------------------------------------------------------------
//
// 此代码由工具生成。
// 运行时版本:4.0.30319.34209
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
//
//------------------------------------------------------------------------------
//
// 此源代码是由 Microsoft.VSDesigner 4.0.30319.34209 版自动生成。
//
#pragma warning disable 1591
namespace CB.Config.TuKuWebService {
using System;
using System.Web.Services;
using System.Diagnostics;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using System.ComponentModel;
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="tukuSoap", Namespace="http://tuku.55128.cn/")]
public partial class tuku : System.Web.Services.Protocols.SoapHttpClientProtocol {
private System.Threading.SendOrPostCallback GetFileListOperationCompleted;
private System.Threading.SendOrPostCallback GetMaxQiOperationCompleted;
private System.Threading.SendOrPostCallback GetMinQiOperationCompleted;
private System.Threading.SendOrPostCallback UploadFileOperationCompleted;
private System.Threading.SendOrPostCallback CreateTkAdvertOperationCompleted;
private bool useDefaultCredentialsSetExplicitly;
///
public tuku() {
this.Url = global::CB.Config.Properties.Settings.Default.CB_Config_TuKuWebService_tuku;
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 GetFileListCompletedEventHandler GetFileListCompleted;
///
public event GetMaxQiCompletedEventHandler GetMaxQiCompleted;
///
public event GetMinQiCompletedEventHandler GetMinQiCompleted;
///
public event UploadFileCompletedEventHandler UploadFileCompleted;
///
public event CreateTkAdvertCompletedEventHandler CreateTkAdvertCompleted;
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tuku.55128.cn/GetFileList", RequestNamespace="http://tuku.55128.cn/", ResponseNamespace="http://tuku.55128.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] GetFileList() {
object[] results = this.Invoke("GetFileList", new object[0]);
return ((string[])(results[0]));
}
///
public void GetFileListAsync() {
this.GetFileListAsync(null);
}
///
public void GetFileListAsync(object userState) {
if ((this.GetFileListOperationCompleted == null)) {
this.GetFileListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetFileListOperationCompleted);
}
this.InvokeAsync("GetFileList", new object[0], this.GetFileListOperationCompleted, userState);
}
private void OnGetFileListOperationCompleted(object arg) {
if ((this.GetFileListCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetFileListCompleted(this, new GetFileListCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tuku.55128.cn/GetMaxQi", RequestNamespace="http://tuku.55128.cn/", ResponseNamespace="http://tuku.55128.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int GetMaxQi() {
object[] results = this.Invoke("GetMaxQi", new object[0]);
return ((int)(results[0]));
}
///
public void GetMaxQiAsync() {
this.GetMaxQiAsync(null);
}
///
public void GetMaxQiAsync(object userState) {
if ((this.GetMaxQiOperationCompleted == null)) {
this.GetMaxQiOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMaxQiOperationCompleted);
}
this.InvokeAsync("GetMaxQi", new object[0], this.GetMaxQiOperationCompleted, userState);
}
private void OnGetMaxQiOperationCompleted(object arg) {
if ((this.GetMaxQiCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetMaxQiCompleted(this, new GetMaxQiCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tuku.55128.cn/GetMinQi", RequestNamespace="http://tuku.55128.cn/", ResponseNamespace="http://tuku.55128.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int GetMinQi() {
object[] results = this.Invoke("GetMinQi", new object[0]);
return ((int)(results[0]));
}
///
public void GetMinQiAsync() {
this.GetMinQiAsync(null);
}
///
public void GetMinQiAsync(object userState) {
if ((this.GetMinQiOperationCompleted == null)) {
this.GetMinQiOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMinQiOperationCompleted);
}
this.InvokeAsync("GetMinQi", new object[0], this.GetMinQiOperationCompleted, userState);
}
private void OnGetMinQiOperationCompleted(object arg) {
if ((this.GetMinQiCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetMinQiCompleted(this, new GetMinQiCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tuku.55128.cn/UploadFile", RequestNamespace="http://tuku.55128.cn/", ResponseNamespace="http://tuku.55128.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public bool UploadFile([System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] byte[] fs, string filename, string code, int qi) {
object[] results = this.Invoke("UploadFile", new object[] {
fs,
filename,
code,
qi});
return ((bool)(results[0]));
}
///
public void UploadFileAsync(byte[] fs, string filename, string code, int qi) {
this.UploadFileAsync(fs, filename, code, qi, null);
}
///
public void UploadFileAsync(byte[] fs, string filename, string code, int qi, object userState) {
if ((this.UploadFileOperationCompleted == null)) {
this.UploadFileOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUploadFileOperationCompleted);
}
this.InvokeAsync("UploadFile", new object[] {
fs,
filename,
code,
qi}, this.UploadFileOperationCompleted, userState);
}
private void OnUploadFileOperationCompleted(object arg) {
if ((this.UploadFileCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.UploadFileCompleted(this, new UploadFileCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tuku.55128.cn/CreateTkAdvert", RequestNamespace="http://tuku.55128.cn/", ResponseNamespace="http://tuku.55128.cn/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public bool CreateTkAdvert(string code) {
object[] results = this.Invoke("CreateTkAdvert", new object[] {
code});
return ((bool)(results[0]));
}
///
public void CreateTkAdvertAsync(string code) {
this.CreateTkAdvertAsync(code, null);
}
///
public void CreateTkAdvertAsync(string code, object userState) {
if ((this.CreateTkAdvertOperationCompleted == null)) {
this.CreateTkAdvertOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateTkAdvertOperationCompleted);
}
this.InvokeAsync("CreateTkAdvert", new object[] {
code}, this.CreateTkAdvertOperationCompleted, userState);
}
private void OnCreateTkAdvertOperationCompleted(object arg) {
if ((this.CreateTkAdvertCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.CreateTkAdvertCompleted(this, new CreateTkAdvertCompletedEventArgs(invokeArgs.Results, 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", "4.0.30319.34209")]
public delegate void GetFileListCompletedEventHandler(object sender, GetFileListCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetFileListCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetFileListCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public string[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((string[])(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
public delegate void GetMaxQiCompletedEventHandler(object sender, GetMaxQiCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetMaxQiCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetMaxQiCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public int Result {
get {
this.RaiseExceptionIfNecessary();
return ((int)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
public delegate void GetMinQiCompletedEventHandler(object sender, GetMinQiCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetMinQiCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetMinQiCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
///
public int Result {
get {
this.RaiseExceptionIfNecessary();
return ((int)(this.results[0]));
}
}
}
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
public delegate void UploadFileCompletedEventHandler(object sender, UploadFileCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class UploadFileCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal UploadFileCompletedEventArgs(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", "4.0.30319.34209")]
public delegate void CreateTkAdvertCompletedEventHandler(object sender, CreateTkAdvertCompletedEventArgs e);
///
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class CreateTkAdvertCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal CreateTkAdvertCompletedEventArgs(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]));
}
}
}
}
#pragma warning restore 1591