public void Execute(SetEventActionEvent setEventActionEvent, EventActionContext context) { try { if (!InternalEventUpStream.InstanceLoaded) { InternalEventUpStream.CreateEventUpStream(this.ConnectionString, this.EventHubName); InternalEventUpStream.InstanceLoaded = true; } InternalEventUpStream.SendMessage(this.DataContext); setEventActionEvent(this, context); } catch { // ignored } }
public byte[] Execute(ActionEvent actionEvent, ActionContext context) { try { if (!InternalEventUpStream.InstanceLoaded) { InternalEventUpStream.CreateEventUpStream(ConnectionString, EventHubName); InternalEventUpStream.InstanceLoaded = true; } InternalEventUpStream.SendMessage(DataContext); actionEvent(this, context); return(null); } catch { actionEvent(this, null); return(null); } }