?? reference.cs
字號:
private object[] OnEndGetBookWithAuthor(System.IAsyncResult result) {
System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.librarylist> retVal = ((hypphone.ServiceReference1.IService)(this)).EndGetBookWithAuthor(result);
return new object[] {
retVal};
}
private void OnGetBookWithAuthorCompleted(object state) {
if ((this.GetBookWithAuthorCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.GetBookWithAuthorCompleted(this, new GetBookWithAuthorCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
}
}
public void GetBookWithAuthorAsync(string author) {
this.GetBookWithAuthorAsync(author, null);
}
public void GetBookWithAuthorAsync(string author, object userState) {
if ((this.onBeginGetBookWithAuthorDelegate == null)) {
this.onBeginGetBookWithAuthorDelegate = new BeginOperationDelegate(this.OnBeginGetBookWithAuthor);
}
if ((this.onEndGetBookWithAuthorDelegate == null)) {
this.onEndGetBookWithAuthorDelegate = new EndOperationDelegate(this.OnEndGetBookWithAuthor);
}
if ((this.onGetBookWithAuthorCompletedDelegate == null)) {
this.onGetBookWithAuthorCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetBookWithAuthorCompleted);
}
base.InvokeAsync(this.onBeginGetBookWithAuthorDelegate, new object[] {
author}, this.onEndGetBookWithAuthorDelegate, this.onGetBookWithAuthorCompletedDelegate, userState);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
System.IAsyncResult hypphone.ServiceReference1.IService.BeginDeleteAAdd(string name, System.AsyncCallback callback, object asyncState) {
return base.Channel.BeginDeleteAAdd(name, callback, asyncState);
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
void hypphone.ServiceReference1.IService.EndDeleteAAdd(System.IAsyncResult result) {
base.Channel.EndDeleteAAdd(result);
}
private System.IAsyncResult OnBeginDeleteAAdd(object[] inValues, System.AsyncCallback callback, object asyncState) {
string name = ((string)(inValues[0]));
return ((hypphone.ServiceReference1.IService)(this)).BeginDeleteAAdd(name, callback, asyncState);
}
private object[] OnEndDeleteAAdd(System.IAsyncResult result) {
((hypphone.ServiceReference1.IService)(this)).EndDeleteAAdd(result);
return null;
}
private void OnDeleteAAddCompleted(object state) {
if ((this.DeleteAAddCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.DeleteAAddCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
}
}
public void DeleteAAddAsync(string name) {
this.DeleteAAddAsync(name, null);
}
public void DeleteAAddAsync(string name, object userState) {
if ((this.onBeginDeleteAAddDelegate == null)) {
this.onBeginDeleteAAddDelegate = new BeginOperationDelegate(this.OnBeginDeleteAAdd);
}
if ((this.onEndDeleteAAddDelegate == null)) {
this.onEndDeleteAAddDelegate = new EndOperationDelegate(this.OnEndDeleteAAdd);
}
if ((this.onDeleteAAddCompletedDelegate == null)) {
this.onDeleteAAddCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDeleteAAddCompleted);
}
base.InvokeAsync(this.onBeginDeleteAAddDelegate, new object[] {
name}, this.onEndDeleteAAddDelegate, this.onDeleteAAddCompletedDelegate, userState);
}
private System.IAsyncResult OnBeginOpen(object[] inValues, System.AsyncCallback callback, object asyncState) {
return ((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(callback, asyncState);
}
private object[] OnEndOpen(System.IAsyncResult result) {
((System.ServiceModel.ICommunicationObject)(this)).EndOpen(result);
return null;
}
private void OnOpenCompleted(object state) {
if ((this.OpenCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.OpenCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
}
}
public void OpenAsync() {
this.OpenAsync(null);
}
public void OpenAsync(object userState) {
if ((this.onBeginOpenDelegate == null)) {
this.onBeginOpenDelegate = new BeginOperationDelegate(this.OnBeginOpen);
}
if ((this.onEndOpenDelegate == null)) {
this.onEndOpenDelegate = new EndOperationDelegate(this.OnEndOpen);
}
if ((this.onOpenCompletedDelegate == null)) {
this.onOpenCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnOpenCompleted);
}
base.InvokeAsync(this.onBeginOpenDelegate, null, this.onEndOpenDelegate, this.onOpenCompletedDelegate, userState);
}
private System.IAsyncResult OnBeginClose(object[] inValues, System.AsyncCallback callback, object asyncState) {
return ((System.ServiceModel.ICommunicationObject)(this)).BeginClose(callback, asyncState);
}
private object[] OnEndClose(System.IAsyncResult result) {
((System.ServiceModel.ICommunicationObject)(this)).EndClose(result);
return null;
}
private void OnCloseCompleted(object state) {
if ((this.CloseCompleted != null)) {
InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
this.CloseCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
}
}
public void CloseAsync() {
this.CloseAsync(null);
}
public void CloseAsync(object userState) {
if ((this.onBeginCloseDelegate == null)) {
this.onBeginCloseDelegate = new BeginOperationDelegate(this.OnBeginClose);
}
if ((this.onEndCloseDelegate == null)) {
this.onEndCloseDelegate = new EndOperationDelegate(this.OnEndClose);
}
if ((this.onCloseCompletedDelegate == null)) {
this.onCloseCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnCloseCompleted);
}
base.InvokeAsync(this.onBeginCloseDelegate, null, this.onEndCloseDelegate, this.onCloseCompletedDelegate, userState);
}
protected override hypphone.ServiceReference1.IService CreateChannel() {
return new ServiceClientChannel(this);
}
private class ServiceClientChannel : ChannelBase<hypphone.ServiceReference1.IService>, hypphone.ServiceReference1.IService {
public ServiceClientChannel(System.ServiceModel.ClientBase<hypphone.ServiceReference1.IService> client) :
base(client) {
}
public System.IAsyncResult BeginGetAllAddress(System.AsyncCallback callback, object asyncState) {
object[] _args = new object[0];
System.IAsyncResult _result = base.BeginInvoke("GetAllAddress", _args, callback, asyncState);
return _result;
}
public System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.addresslist> EndGetAllAddress(System.IAsyncResult result) {
object[] _args = new object[0];
System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.addresslist> _result = ((System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.addresslist>)(base.EndInvoke("GetAllAddress", _args, result)));
return _result;
}
public System.IAsyncResult BeginSaveAAddress(hypphone.ServiceReference1.addresslist address, System.AsyncCallback callback, object asyncState) {
object[] _args = new object[1];
_args[0] = address;
System.IAsyncResult _result = base.BeginInvoke("SaveAAddress", _args, callback, asyncState);
return _result;
}
public hypphone.ServiceReference1.addresslist EndSaveAAddress(System.IAsyncResult result) {
object[] _args = new object[0];
hypphone.ServiceReference1.addresslist _result = ((hypphone.ServiceReference1.addresslist)(base.EndInvoke("SaveAAddress", _args, result)));
return _result;
}
public System.IAsyncResult BeginGetAllBooks(System.AsyncCallback callback, object asyncState) {
object[] _args = new object[0];
System.IAsyncResult _result = base.BeginInvoke("GetAllBooks", _args, callback, asyncState);
return _result;
}
public System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.librarylist> EndGetAllBooks(System.IAsyncResult result) {
object[] _args = new object[0];
System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.librarylist> _result = ((System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.librarylist>)(base.EndInvoke("GetAllBooks", _args, result)));
return _result;
}
public System.IAsyncResult BeginGetBookWithName(string bookname, System.AsyncCallback callback, object asyncState) {
object[] _args = new object[1];
_args[0] = bookname;
System.IAsyncResult _result = base.BeginInvoke("GetBookWithName", _args, callback, asyncState);
return _result;
}
public System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.librarylist> EndGetBookWithName(System.IAsyncResult result) {
object[] _args = new object[0];
System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.librarylist> _result = ((System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.librarylist>)(base.EndInvoke("GetBookWithName", _args, result)));
return _result;
}
public System.IAsyncResult BeginGetBookWithMark(string marknum, System.AsyncCallback callback, object asyncState) {
object[] _args = new object[1];
_args[0] = marknum;
System.IAsyncResult _result = base.BeginInvoke("GetBookWithMark", _args, callback, asyncState);
return _result;
}
public System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.librarylist> EndGetBookWithMark(System.IAsyncResult result) {
object[] _args = new object[0];
System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.librarylist> _result = ((System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.librarylist>)(base.EndInvoke("GetBookWithMark", _args, result)));
return _result;
}
public System.IAsyncResult BeginGetBookWithAuthor(string author, System.AsyncCallback callback, object asyncState) {
object[] _args = new object[1];
_args[0] = author;
System.IAsyncResult _result = base.BeginInvoke("GetBookWithAuthor", _args, callback, asyncState);
return _result;
}
public System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.librarylist> EndGetBookWithAuthor(System.IAsyncResult result) {
object[] _args = new object[0];
System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.librarylist> _result = ((System.Collections.ObjectModel.ObservableCollection<hypphone.ServiceReference1.librarylist>)(base.EndInvoke("GetBookWithAuthor", _args, result)));
return _result;
}
public System.IAsyncResult BeginDeleteAAdd(string name, System.AsyncCallback callback, object asyncState) {
object[] _args = new object[1];
_args[0] = name;
System.IAsyncResult _result = base.BeginInvoke("DeleteAAdd", _args, callback, asyncState);
return _result;
}
public void EndDeleteAAdd(System.IAsyncResult result) {
object[] _args = new object[0];
base.EndInvoke("DeleteAAdd", _args, result);
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -