Exemplo n.º 1
0
        /// <summary>Executes the action. </summary>
        /// <param name="actionName">Name of the action. </param>
        /// <param name="parameters">The parameters for the given action. </param>
        /// <returns>The resulting execution; </returns>
        /// <seealso cref="M:Stackstorm.Api.Client.Apis.IExecutionsApi.ExecuteActionAsync(string,Dictionary{string,string})"/>
        public async Task <Execution> ExecuteActionAsync(string actionName, Dictionary <string, string> parameters)
        {
            ExecuteActionRequest request = new ExecuteActionRequest
            {
                action     = actionName,
                parameters = parameters
            };

            return(await _host.PostApiRequestAsync <Execution, ExecuteActionRequest>("/v1/executions/", request));
        }
Exemplo n.º 2
0
        public virtual async Task Refresh(IDurableOrchestrationClient starter, StateDetails stateDetails, ExecuteActionRequest exActReq,
                                          ApplicationArchitectClient appArch, EnterpriseArchitectClient entArch, EnterpriseManagerClient entMgr, IdentityManagerClient idMgr,
                                          SecurityManagerClient secMgr, DocumentClient client)
        {
            // await EnsureUserEnterprise(entArch, entMgr, secMgr, stateDetails.EnterpriseLookup, stateDetails.Username);

            State.Loading = false;

            State.HomePage.Loading = false;

            State.SSL.Loading = false;
        }