Пример #1
0
        public ConnectResult Connect()
        {
            var service = new DOMAService();
              service.Url = WebServiceUrl;

              var request = new ConnectRequest
                      {
                        Username = Username,
                        Password = Password
                      };
              var response = service.Connect(request);

              version = response.Version;

              return new ConnectResult
              {
            Success = response.Success,
            ErrorMessage = response.ErrorMessage,
            Version = response.Version
              };
        }
Пример #2
0
 /// <remarks/>
 public void ConnectAsync(ConnectRequest request) {
     this.ConnectAsync(request, null);
 }
Пример #3
0
 /// <remarks/>
 public void ConnectAsync(ConnectRequest request, object userState) {
     if ((this.ConnectOperationCompleted == null)) {
         this.ConnectOperationCompleted = new System.Threading.SendOrPostCallback(this.OnConnectOperationCompleted);
     }
     this.InvokeAsync("Connect", new object[] {
                 request}, this.ConnectOperationCompleted, userState);
 }
Пример #4
0
 public ConnectResponse Connect(ConnectRequest request) {
     object[] results = this.Invoke("Connect", new object[] {
                 request});
     return ((ConnectResponse)(results[0]));
 }