Ejemplo n.º 1
0
        private void RaiseProjectChanged(Project project)
        {
            Int64 startTicks = Log.EVENT_HANDLER("Enter", Common.LOG_CATEGORY);

            GetProjectsCommand.RaiseCanExecuteChanged();

            GetDashboardsCommand.RaiseCanExecuteChanged();
            GetWidgetsCommand.RaiseCanExecuteChanged();

            // Build

            GetAuthorizedResourcesCommand.RaiseCanExecuteChanged();
            GetBuildsCommand.RaiseCanExecuteChanged();
            GetDefinitionsCommand.RaiseCanExecuteChanged();
            GetGeneralSettingsCommand.RaiseCanExecuteChanged();
            GetOptionsCommand.RaiseCanExecuteChanged();
            GetResourcesCommand.RaiseCanExecuteChanged();
            GetSettingsCommand.RaiseCanExecuteChanged();
            GetBuildTagsCommand.RaiseCanExecuteChanged();

            // Git

            GetProjectRepositoriesCommand.RaiseCanExecuteChanged();
            GetPullRequestsCommand.RaiseCanExecuteChanged();

            GetBlobsCommand.RaiseCanExecuteChanged();
            GetCommitsCommand.RaiseCanExecuteChanged();
            GetImportRequestsCommand.RaiseCanExecuteChanged();
            GetItemsCommand.RaiseCanExecuteChanged();
            GetMergesCommand.RaiseCanExecuteChanged();
            GetPushesCommand.RaiseCanExecuteChanged();
            GetRefsCommand.RaiseCanExecuteChanged();
            GetStatsCommand.RaiseCanExecuteChanged();

            // Test

            GetTestPlansCommand.RaiseCanExecuteChanged();

            // Work Item Tracking

            GetClassificationNodesCommand.RaiseCanExecuteChanged();
            GetProjectFieldsWITCommand.RaiseCanExecuteChanged();
            GetQueriesCommand.RaiseCanExecuteChanged();
            GetTagsCommand.RaiseCanExecuteChanged();
            GetTemplatesCommand.RaiseCanExecuteChanged();
            GetWorkItemRelationTypesCommand.RaiseCanExecuteChanged();
            GetWorkItemTypeCategoriesCommand.RaiseCanExecuteChanged();
            GetStatesWITCommand.RaiseCanExecuteChanged();
            GetWorkItemTypesWITCommand.RaiseCanExecuteChanged();
            GetWorkItemTypesFieldsCommand.RaiseCanExecuteChanged();

            GetWorkItemCommand.RaiseCanExecuteChanged();

            Log.EVENT_HANDLER("Exit", Common.LOG_CATEGORY, startTicks);
        }
Ejemplo n.º 2
0
        public async Task <CommandResult <GetTagsResult> > GetTags([FromServices] GetTagsCommand _getTagsCommand, string siteId, string type)
        {
            var userInput = new UserInput <GetTagsInput>
            {
                UserId = User.GetUserId(),
                Data   = new GetTagsInput
                {
                    SiteId = siteId,
                    Type   = type
                }
            };

            var result =
                await Business.InvokeAsync <GetTagsCommand, UserInput <GetTagsInput>, CommandResult <GetTagsResult> >(
                    _getTagsCommand, userInput);

            return(result);
        }