예제 #1
0
            async Task OnExecuteAsync()
            {
                await E1.AuthenticateAsync();

                string search = Prompt.GetString("Enter Search String:");

                while (!string.IsNullOrEmpty(search))
                {
                    await Delay();

                    if (int.TryParse(search, out var ab))
                    {
                        await Mediator.Send(new ABState.ABAction {
                            AB = ab
                        });
                    }
                    else
                    {
                        await Mediator.Send(new ABState.ABListAction {
                            Search = search
                        });
                    }

                    Dump();

                    search = Prompt.GetString("Enter Search String:");
                }
            }
예제 #2
0
            async Task OnExecuteAsync()
            {
                await E1.AuthenticateAsync();

                await Delay();

                await Mediator.Send(new ABState.DemoRequestAction {
                    FormName = FormName
                });

                Dump();
            }