internal static bool IsFailed(this EventTypeConfiguration eventTypeConfiguration) { switch (eventTypeConfiguration) { case EventTypeConfiguration.NestedToParentFailed: case EventTypeConfiguration.ParentToNestedFailed: return(true); default: return(false); } }
public EventService(IOptions <EventTypeConfiguration> eventTypeConfiguration, IGateway gateway) { _eventTypeConfiguration = eventTypeConfiguration.Value; _gateway = gateway; }
internal static EventConfiguration GetEventConfigurationByType(this WorkflowConfiguration workflowConfiguration, EventTypeConfiguration eventType) { return(workflowConfiguration.Events.FirstOrDefault(e => e.Type == eventType)); }
public EventConfiguration(EventTypeConfiguration type, string code, string parameters) { Type = type; Code = code; Parameters = parameters; }