Пример #1
0
#pragma warning restore CC0044

        protected IResponseWriter CreateForm(WebRequestTO webRequest, string serviceName, string workspaceId, NameValueCollection headers, IPrincipal user)
        {
            var a        = new Executor(_workspaceRepository, _resourceCatalog, _testCatalog, _testCoverageCatalog, _authorizationService, _dataObjectFactory);
            var response = a.TryExecute(webRequest, serviceName, workspaceId, headers, user);

            return(response ?? a.BuildResponse(webRequest, serviceName));
        }
Пример #2
0
        protected IResponseWriter ExecuteWorkflow(WebRequestTO webRequest, string serviceName, string workspaceId, NameValueCollection headers, IPrincipal user)
        {
            if (!serviceName.Contains(".json"))
            {
                serviceName += ".json";
            }

            var a = new Executor(_workspaceRepository, _resourceCatalog, _authorizationService, _dataObjectFactory, _esbChannelFactory, _jwtManager);

            a.TryExecute(webRequest, serviceName, workspaceId, headers, user);
            var response = a.BuildResponse(webRequest, serviceName);

            return(response);
        }