Ejemplo n.º 1
0
        internal async Task HandleCreateAgentProxyRequest(CreateAgentProxyParams parameters, RequestContext <CreateAgentProxyResult> requestContext)
        {
            bool succeeded = await ConfigureAgentProxy(
                parameters.OwnerUri,
                parameters.Proxy.AccountName,
                parameters.Proxy,
                AgentConfigAction.Create);

            await requestContext.SendResult(new CreateAgentProxyResult()
            {
                Succeeded = succeeded
            });
        }
Ejemplo n.º 2
0
        internal async Task HandleCreateAgentProxyRequest(CreateAgentProxyParams parameters, RequestContext <AgentProxyResult> requestContext)
        {
            var result = await ConfigureAgentProxy(
                parameters.OwnerUri,
                parameters.Proxy.AccountName,
                parameters.Proxy,
                ConfigAction.Create,
                RunType.RunNow);

            await requestContext.SendResult(new AgentProxyResult()
            {
                Success      = result.Item1,
                ErrorMessage = result.Item2,
                Proxy        = parameters.Proxy
            });
        }