public IAsyncResult BegingetOfflineSession(getOfflineSession getOfflineSession1, AsyncCallback callback, object asyncState) { return this.BeginInvoke("getOfflineSession", new object[1] { (object) getOfflineSession1 }, callback, asyncState); }
public offlineSessionType GetOfflineSession(string publicKey, string secretKey, string offlineToken) { getOfflineSession getOfflineSession1 = new getOfflineSession(); DateTime utcNow = DateTime.UtcNow; getOfflineSession1.offlineToken = offlineToken; getOfflineSession1.nonce = Signature.GetNonce(); getOfflineSession1.publicKey = publicKey; getOfflineSession1.signature = Signature.SoapSignature(utcNow, secretKey, "connectservice", "getofflinesession", getOfflineSession1.nonce); getOfflineSession1.timestamp = Signature.GetZDateTime(utcNow); getOfflineSessionResponse offlineSession = this.connectService.getOfflineSession(getOfflineSession1); if (offlineSession == null) return (offlineSessionType) null; else return offlineSession.session; }