public IAsyncResult BeginUpdateSetting(UpdateSettingRequest UpdateSettingRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("UpdateSetting", new object[1]
       {
     (object) UpdateSettingRequest
       }, callback, asyncState);
 }
Beispiel #2
0
 public settingItem UpdateSetting(sessionType session, settingItem setting)
 {
     UpdateSettingRequest UpdateSettingRequest = new UpdateSettingRequest();
       DateTime utcNow = DateTime.UtcNow;
       UpdateSettingRequest.nonce = Signature.GetNonce();
       UpdateSettingRequest.connectId = session.connectId;
       UpdateSettingRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "updatesetting", UpdateSettingRequest.nonce);
       UpdateSettingRequest.timestamp = Signature.GetZDateTime(utcNow);
       UpdateSettingRequest.settingItem = setting;
       UpdateSettingResponse updateSettingResponse = this.publisherService.UpdateSetting(UpdateSettingRequest);
       if (updateSettingResponse == null)
     return (settingItem) null;
       else
     return updateSettingResponse.settingItem;
 }