public IAsyncResult BeginDeleteProgramApplication(DeleteProgramApplicationRequest DeleteProgramApplicationRequest, AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteProgramApplication", new object[1] { (object) DeleteProgramApplicationRequest }, callback, asyncState); }
public int DeleteProgramApplication(sessionType session, int adspaceId, int programId) { DeleteProgramApplicationRequest DeleteProgramApplicationRequest = new DeleteProgramApplicationRequest(); DateTime utcNow = DateTime.UtcNow; DeleteProgramApplicationRequest.nonce = Signature.GetNonce(); DeleteProgramApplicationRequest.connectId = session.connectId; DeleteProgramApplicationRequest.signature = Signature.SoapSignature(utcNow, session.secretKey, "publisherservice", "deleteprogramapplication", DeleteProgramApplicationRequest.nonce); DeleteProgramApplicationRequest.timestamp = Signature.GetZDateTime(utcNow); DeleteProgramApplicationRequest.adspaceId = adspaceId; DeleteProgramApplicationRequest.programId = programId; DeleteProgramApplicationResponse applicationResponse = this.publisherService.DeleteProgramApplication(DeleteProgramApplicationRequest); if (applicationResponse == null) return 0; else return applicationResponse.count; }