123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // 此代码由工具生成。
- // 运行时版本:4.0.30319.34209
- //
- // 对此文件的更改可能会导致不正确的行为,并且如果
- // 重新生成代码,这些更改将会丢失。
- // </auto-generated>
- //------------------------------------------------------------------------------
- //
- // 此源代码是由 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;
-
-
- /// <remarks/>
- [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;
-
- /// <remarks/>
- 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;
- }
- }
-
- /// <remarks/>
- public event GetFileListCompletedEventHandler GetFileListCompleted;
-
- /// <remarks/>
- public event GetMaxQiCompletedEventHandler GetMaxQiCompleted;
-
- /// <remarks/>
- public event GetMinQiCompletedEventHandler GetMinQiCompleted;
-
- /// <remarks/>
- public event UploadFileCompletedEventHandler UploadFileCompleted;
-
- /// <remarks/>
- public event CreateTkAdvertCompletedEventHandler CreateTkAdvertCompleted;
-
- /// <remarks/>
- [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]));
- }
-
- /// <remarks/>
- public void GetFileListAsync() {
- this.GetFileListAsync(null);
- }
-
- /// <remarks/>
- 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));
- }
- }
-
- /// <remarks/>
- [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]));
- }
-
- /// <remarks/>
- public void GetMaxQiAsync() {
- this.GetMaxQiAsync(null);
- }
-
- /// <remarks/>
- 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));
- }
- }
-
- /// <remarks/>
- [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]));
- }
-
- /// <remarks/>
- public void GetMinQiAsync() {
- this.GetMinQiAsync(null);
- }
-
- /// <remarks/>
- 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));
- }
- }
-
- /// <remarks/>
- [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]));
- }
-
- /// <remarks/>
- public void UploadFileAsync(byte[] fs, string filename, string code, int qi) {
- this.UploadFileAsync(fs, filename, code, qi, null);
- }
-
- /// <remarks/>
- 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));
- }
- }
-
- /// <remarks/>
- [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]));
- }
-
- /// <remarks/>
- public void CreateTkAdvertAsync(string code) {
- this.CreateTkAdvertAsync(code, null);
- }
-
- /// <remarks/>
- 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));
- }
- }
-
- /// <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.34209")]
- public delegate void GetFileListCompletedEventHandler(object sender, GetFileListCompletedEventArgs e);
-
- /// <remarks/>
- [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;
- }
-
- /// <remarks/>
- public string[] Result {
- get {
- this.RaiseExceptionIfNecessary();
- return ((string[])(this.results[0]));
- }
- }
- }
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
- public delegate void GetMaxQiCompletedEventHandler(object sender, GetMaxQiCompletedEventArgs e);
-
- /// <remarks/>
- [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;
- }
-
- /// <remarks/>
- public int Result {
- get {
- this.RaiseExceptionIfNecessary();
- return ((int)(this.results[0]));
- }
- }
- }
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
- public delegate void GetMinQiCompletedEventHandler(object sender, GetMinQiCompletedEventArgs e);
-
- /// <remarks/>
- [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;
- }
-
- /// <remarks/>
- public int Result {
- get {
- this.RaiseExceptionIfNecessary();
- return ((int)(this.results[0]));
- }
- }
- }
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
- public delegate void UploadFileCompletedEventHandler(object sender, UploadFileCompletedEventArgs e);
-
- /// <remarks/>
- [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;
- }
-
- /// <remarks/>
- public bool Result {
- get {
- this.RaiseExceptionIfNecessary();
- return ((bool)(this.results[0]));
- }
- }
- }
-
- /// <remarks/>
- [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.34209")]
- public delegate void CreateTkAdvertCompletedEventHandler(object sender, CreateTkAdvertCompletedEventArgs e);
-
- /// <remarks/>
- [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;
- }
-
- /// <remarks/>
- public bool Result {
- get {
- this.RaiseExceptionIfNecessary();
- return ((bool)(this.results[0]));
- }
- }
- }
- }
- #pragma warning restore 1591
|