Пример #1
0
 public string CreateConnect(string connectId, string secretKey, string publicKey, string applicationId, roleType role)
 {
     createConnectRequest createConnectRequest = new createConnectRequest();
       DateTime utcNow = DateTime.UtcNow;
       createConnectRequest.nonce = Signature.GetNonce();
       createConnectRequest.publicKey = publicKey;
       createConnectRequest.connectId = connectId;
       createConnectRequest.signature = Signature.SoapSignature(utcNow, secretKey, "connectservice", "createconnect", createConnectRequest.nonce);
       createConnectRequest.timestamp = Signature.GetZDateTime(utcNow);
       createConnectRequest.connectId = connectId;
       createConnectRequest.applicationId = applicationId;
       createConnectRequest.role = role;
       createConnectRequest.roleSpecified = true;
       createConnectResponse connect = this.connectService.createConnect(createConnectRequest);
       if (connect == null)
     return (string) null;
       else
     return connect.connectId;
 }
Пример #2
0
 public IAsyncResult BegincreateConnect(createConnectRequest createConnectRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("createConnect", new object[1]
       {
     (object) createConnectRequest
       }, callback, asyncState);
 }