public static async Task HelloWorldAsync(this Session session, string output, CancellationToken cancellationToken = default) { var action = new HelloWorldAction(new ActionContext(session.Expectable, session.ItemsCache)); await new HelloWorldActionHandler().Handle(action, cancellationToken); }
public object Bind(IActionDescriptor actionDescriptor, ActionContext context) { var action = new HelloWorldAction(context) { Output = actionDescriptor.GetRequired(nameof(HelloWorldAction.Output)) }; return(action); }