public override void HandleCompensation(MediaButler.Common.workflow.ChainRequest request)
 {
     //Standar Step Compesnation, only LOG
     myRequest = (ButlerProcessRequest)request;
     string errorTxt = string.Format("[{0}] process Type {1} instance {2} has not compensation method", this.GetType().FullName, myRequest.ProcessTypeId, myRequest.ProcessInstanceId);
     Trace.TraceWarning(errorTxt);
 }
 public override void HandleExecute(MediaButler.Common.workflow.ChainRequest request)
 {
     //Standar Init Step activities
     myRequest = (ButlerProcessRequest)request;
     _MediaServicesContext = new CloudMediaContext(myRequest.MediaAccountName, myRequest.MediaAccountKey);
     //Read ServiceBus configuration from Step configuration
     myServiceBusData = Newtonsoft.Json.JsonConvert.DeserializeObject<ServiceBusData>(this.StepConfiguration);
     //Map info to output
     MapInfo();
     string jsonMessage = Newtonsoft.Json.JsonConvert.SerializeObject(this.myData);
     //Send Message
     this.SendMessage(jsonMessage);
     //step finish
 }