public IAsyncResult BeginpromoteSession(promoteSessionRequest promoteSessionRequest, AsyncCallback callback, object asyncState) { return this.BeginInvoke("promoteSession", new object[1] { (object) promoteSessionRequest }, callback, asyncState); }
public promoteSessionResponse PromoteSession(sessionType session, string publicKey, string secretKey, promoteTypeEnum promoteType) { promoteSessionRequest promoteSessionRequest = new promoteSessionRequest(); DateTime utcNow = DateTime.UtcNow; promoteSessionRequest.nonce = Signature.GetNonce(); promoteSessionRequest.connectId = session.connectId; promoteSessionRequest.signature = Signature.SoapSignature(utcNow, secretKey, "connectservice", "promotesession", promoteSessionRequest.nonce); promoteSessionRequest.timestamp = Signature.GetZDateTime(utcNow); promoteSessionRequest.publicKey = publicKey; promoteSessionRequest.promoteType = promoteType; return this.connectService.promoteSession(promoteSessionRequest); }