Exemplo n.º 1
0
        public async Task <GadgetResponse <SocketConnectionGadget.Result> > SocketConnection([FromBody] SocketConnectionGadget.Request request)
        {
            this.logger.LogInformation("Executing Socket Connection API");
            var gadget = new SocketConnectionGadget(this.logger, this.httpClientFactory, Url, this.appSettings);

            return(await gadget.ExecuteAsync(request));
        }
        public async Task OnPost()
        {
            this.logger.LogInformation("Executing Socket Connection page");
            var gadget = new SocketConnectionGadget(this.logger, this.httpClientFactory, Url, this.appSettings);

            this.GadgetResponse = await gadget.ExecuteAsync(this.GadgetRequest);
        }