59
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
1 using System.ServiceModel;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
2 using System.ServiceModel.Description;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
3
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
4 public interface IClientDataServiceClient
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
5 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
6 System.Net.CookieContainer CookieContainer { get; set; }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
7 ChannelFactory<ClientDataService> ChannelFactory { get; }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
8 ClientCredentials ClientCredentials { get; }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
9 CommunicationState State { get; }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
10 IClientChannel InnerChannel { get; }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
11 ServiceEndpoint Endpoint { get; }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
12 event System.EventHandler<GetCompletedEventArgs> GetCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
13 event System.EventHandler<GetAllCompletedEventArgs> GetAllCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
14 event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> InsertCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
15 event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> UpdateCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
16 event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> DeleteCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
17 event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> OpenCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
18 event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> CloseCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
19 void GetAsync(int id);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
20 void GetAsync(int id, object userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
21 void GetAllAsync();
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
22 void GetAllAsync(object userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
23 void InsertAsync(object item);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
24 void InsertAsync(object item, object userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
25 void UpdateAsync(object item);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
26 void UpdateAsync(object item, object userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
27 void DeleteAsync(object item);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
28 void DeleteAsync(object item, object userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
29 void OpenAsync();
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
30 void OpenAsync(object userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
31 void CloseAsync();
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
32 void CloseAsync(object userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
33 void Abort();
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
34 } |