public ActionResult Post(Notification notification, string operationId) { if (notification == null || string.IsNullOrEmpty(operationId)) { return(HttpNotFound()); } try { LogHelper.Info("brightcove ingestion callback controller for operation id = " + operationId + " and notification = " + JsonConvert.SerializeObject(notification), this); var args = new HandleCallbackArgs { Notification = notification, OperationId = operationId }; Sitecore.Pipelines.CorePipeline.Run("Brightcove.HandleCallback", args); } catch (Exception ex) { LogHelper.Error("brightcove video upload notification -", this, ex); throw; } return(this.Json(JsonConvert.SerializeObject(notification), JsonRequestBehavior.AllowGet)); }
public abstract void Process(HandleCallbackArgs args);