public IAsyncResult BeginCreateSetting(CreateSettingRequest CreateSettingRequest, AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("CreateSetting", new object[1]
       {
     (object) CreateSettingRequest
       }, callback, asyncState);
 }
Example #2
0
 public settingItem CreateSetting(sessionType session, settingItem setting)
 {
     CreateSettingRequest CreateSettingRequest = new CreateSettingRequest();
       DateTime utcNow = DateTime.UtcNow;
       CreateSettingRequest.nonce = Signature.GetNonce();
       CreateSettingRequest.connectId = session.connectId;
       CreateSettingRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "createsetting", CreateSettingRequest.nonce);
       CreateSettingRequest.timestamp = Signature.GetZDateTime(utcNow);
       CreateSettingRequest.settingItem = setting;
       CreateSettingResponse setting1 = this.publisherService.CreateSetting(CreateSettingRequest);
       if (setting1 == null)
     return (settingItem) null;
       else
     return setting1.settingItem;
 }