Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public object Bind(IActionDescriptor actionDescriptor, ActionContext context)
        {
            var action = new HelloWorldAction(context)
            {
                Output = actionDescriptor.GetRequired(nameof(HelloWorldAction.Output))
            };

            return(action);
        }