Ejemplo n.º 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
              };
        }
Ejemplo n.º 2
0
 /// <remarks/>
 public void ConnectAsync(ConnectRequest request) {
     this.ConnectAsync(request, null);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 public ConnectResponse Connect(ConnectRequest request) {
     object[] results = this.Invoke("Connect", new object[] {
                 request});
     return ((ConnectResponse)(results[0]));
 }