Пример #1
0
 public IAsyncResult BeginCreateAdspace(CreateAdspaceRequest CreateAdspaceRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("CreateAdspace", new object[1]
       {
     (object) CreateAdspaceRequest
       }, callback, asyncState);
 }
Пример #2
0
 public adspaceItem CreateAdspace(sessionType session, adspaceItem adspace)
 {
     CreateAdspaceRequest CreateAdspaceRequest = new CreateAdspaceRequest();
       DateTime utcNow = DateTime.UtcNow;
       CreateAdspaceRequest.nonce = Signature.GetNonce();
       CreateAdspaceRequest.connectId = session.connectId;
       CreateAdspaceRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "createadspace", CreateAdspaceRequest.nonce);
       CreateAdspaceRequest.timestamp = Signature.GetZDateTime(utcNow);
       CreateAdspaceRequest.adspaceItem = adspace;
       CreateAdspaceResponse adspace1 = this.publisherService.CreateAdspace(CreateAdspaceRequest);
       if (adspace1 == null)
     return (adspaceItem) null;
       else
     return adspace1.adspaceItem;
 }