예제 #1
0
 public IAsyncResult BeginGetApplication(GetApplicationRequest GetApplicationRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("GetApplication", new object[1]
       {
     (object) GetApplicationRequest
       }, callback, asyncState);
 }
예제 #2
0
 public applicationItem GetApplication(sessionType session, string applicationId)
 {
     GetApplicationRequest GetApplicationRequest = new GetApplicationRequest();
       DateTime utcNow = DateTime.UtcNow;
       GetApplicationRequest.nonce = Signature.GetNonce();
       GetApplicationRequest.connectId = session.connectId;
       GetApplicationRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "getapplication", GetApplicationRequest.nonce);
       GetApplicationRequest.timestamp = Signature.GetZDateTime(utcNow);
       GetApplicationRequest.applicationId = applicationId;
       GetApplicationResponse application = this.publisherService.GetApplication(GetApplicationRequest);
       if (application == null)
     return (applicationItem) null;
       else
     return application.applicationItem;
 }