📄 proxysyncservice.cs
字号:
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using Microsoft.Synchronization.Data;
namespace HardwareDistributor.Synchronization
{
/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name = "ServiceSoap", Namespace = "http://tempuri.org/")]
public class ProxySyncService : System.Web.Services.Protocols.SoapHttpClientProtocol
{
/// <remarks/>
public ProxySyncService()
{
this.Url = "http://localhost:3169/Service.asmx";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetServerInfo", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public SyncServerInfo GetServerInfo(SyncSession session)
{
object[] results = this.Invoke("GetServerInfo", new object[] {
session});
return ((SyncServerInfo)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetServerInfo(SyncSession session, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("GetServerInfo", new object[] {
session}, callback, asyncState);
}
/// <remarks/>
public SyncServerInfo EndGetServerInfo(System.IAsyncResult asyncResult)
{
object[] results = this.EndInvoke(asyncResult);
return ((SyncServerInfo)(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetSchema", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public SyncSchema GetSchema(string[] tableNames, SyncSession session)
{
object[] results = this.Invoke("GetSchema", new object[] {
tableNames,
session});
return ((SyncSchema)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetSchema(string[] tableNames, SyncSession session, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("GetSchema", new object[] {
tableNames,
session}, callback, asyncState);
}
/// <remarks/>
public SyncSchema EndGetSchema(System.IAsyncResult asyncResult)
{
object[] results = this.EndInvoke(asyncResult);
return ((SyncSchema)(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetChanges", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public SyncContext GetChanges(SyncGroupMetadata groupMetadata, SyncSession syncSession)
{
object[] results = this.Invoke("GetChanges", new object[] {
groupMetadata,
syncSession});
return ((SyncContext)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetChanges(SyncGroupMetadata groupMetadata, SyncSession syncSession, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("GetChanges", new object[] {
groupMetadata,
syncSession}, callback, asyncState);
}
/// <remarks/>
public SyncContext EndGetChanges(System.IAsyncResult asyncResult)
{
object[] results = this.EndInvoke(asyncResult);
return ((SyncContext)(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ApplyChanges", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public SyncContext ApplyChanges(SyncGroupMetadata groupMetadata, System.Data.DataSet dataSet, SyncSession syncSession)
{
object[] results = this.Invoke("ApplyChanges", new object[] {
groupMetadata,
dataSet,
syncSession});
return ((SyncContext)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginApplyChanges(SyncGroupMetadata groupMetadata, System.Data.DataSet dataSet, SyncSession syncSession, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("ApplyChanges", new object[] {
groupMetadata,
dataSet,
syncSession}, callback, asyncState);
}
/// <remarks/>
public SyncContext EndApplyChanges(System.IAsyncResult asyncResult)
{
object[] results = this.EndInvoke(asyncResult);
return ((SyncContext)(results[0]));
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -