Esempio n. 1
0
 public IAsyncResult BeginGetProfile(GetProfileRequest GetProfileRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("GetProfile", new object[1]
       {
     (object) GetProfileRequest
       }, callback, asyncState);
 }
Esempio n. 2
0
 public profileItem GetProfile(sessionType session)
 {
     GetProfileRequest GetProfileRequest = new GetProfileRequest();
       DateTime utcNow = DateTime.UtcNow;
       GetProfileRequest.nonce = Signature.GetNonce();
       GetProfileRequest.connectId = session.connectId;
       GetProfileRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "getprofile", GetProfileRequest.nonce);
       GetProfileRequest.timestamp = Signature.GetZDateTime(utcNow);
       GetProfileResponse profile = this.publisherService.GetProfile(GetProfileRequest);
       if (profile == null)
     return (profileItem) null;
       else
     return profile.profileItem;
 }