public programApplicationItem CreateProgramApplication(sessionType session, int adspaceId, int programId, string comment) { CreateProgramApplicationRequest CreateProgramApplicationRequest = new CreateProgramApplicationRequest(); DateTime utcNow = DateTime.UtcNow; CreateProgramApplicationRequest.nonce = Signature.GetNonce(); CreateProgramApplicationRequest.connectId = session.connectId; CreateProgramApplicationRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "createprogramapplication", CreateProgramApplicationRequest.nonce); CreateProgramApplicationRequest.timestamp = Signature.GetZDateTime(utcNow); CreateProgramApplicationRequest.adspaceId = adspaceId; CreateProgramApplicationRequest.programId = programId; CreateProgramApplicationRequest.publisherComment = comment; CreateProgramApplicationResponse programApplication = this.publisherService.CreateProgramApplication(CreateProgramApplicationRequest); if (programApplication == null || programApplication.programApplicationItem == null) return (programApplicationItem) null; else return programApplication.programApplicationItem; }
public IAsyncResult BeginCreateProgramApplication(CreateProgramApplicationRequest CreateProgramApplicationRequest, AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateProgramApplication", new object[1] { (object) CreateProgramApplicationRequest }, callback, asyncState); }