public WebHookResult(IRequestAction action, IEnumerable <SlackActionModel> slackActions) { ActionName = action.GetType().Name; GithubHookEventName = action.GithubHookEventName; SlackJsonType = action.SlackJsonType; SlackActions = slackActions; }
public Rule(ICondition condition, IRequestAction requestAction, ICreateNextState createNextState) { Check.IsNotNull(condition, "condition"); Check.IsNotNull(requestAction, "requestAction"); Check.IsNotNull(createNextState, "createNextState"); this.condition = condition; this.requestAction = requestAction; this.createNextState = createNextState; }
private void Update(object sender, PWMessage <MenuCommands> msg) { IRequestAction action = null; _actions.TryGetValue(msg.Content, out action); if (action != null) { LoginAction loginAction = action as LoginAction; if (loginAction != null) { loginAction.IsCancel = msg.Content == MenuCommands.CancelConnect; } action.Perform(); } }
public IReturnState Execute(CreateRequestActionDelegate createRequestActionDelegate) { requestAction = new RequestAction(createRequestActionDelegate); return this; }
private ActionTestBuilder(IRequestAction action, ISlackMessaging messaging, ILogger <T> _) { this.action = action; this.messaging = messaging; }
public IRequestAction Do(IRequestAction requestAction) { return requestAction; }