private void RaiseRepositoryChanged(GitRepository repository) { Int64 startTicks = Log.EVENT_HANDLER("Enter", Common.LOG_CATEGORY); GetPullRequestsCommand.RaiseCanExecuteChanged(); GetPullRequestAttachmentsCommand.RaiseCanExecuteChanged(); GetPullRequestCommitsCommand.RaiseCanExecuteChanged(); GetPullRequestIterationsCommand.RaiseCanExecuteChanged(); GetPullRequestLabelsCommand.RaiseCanExecuteChanged(); GetPullRequestPropertiesCommand.RaiseCanExecuteChanged(); GetPullRequestReviewersCommand.RaiseCanExecuteChanged(); GetPullRequestStatusesCommand.RaiseCanExecuteChanged(); GetPullRequestThreadsCommand.RaiseCanExecuteChanged(); GetPullRequestWorkItemsCommand.RaiseCanExecuteChanged(); GetBlobsCommand.RaiseCanExecuteChanged(); GetCommitsCommand.RaiseCanExecuteChanged(); GetImportRequestsCommand.RaiseCanExecuteChanged(); GetItemsCommand.RaiseCanExecuteChanged(); GetMergesCommand.RaiseCanExecuteChanged(); GetPushesCommand.RaiseCanExecuteChanged(); GetRefsCommand.RaiseCanExecuteChanged(); GetStatsCommand.RaiseCanExecuteChanged(); Log.EVENT_HANDLER("Exit", Common.LOG_CATEGORY, startTicks); }
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); }
public async Task <CommandResult> Get([FromServices] GetStatsCommand _getStatsCommand, [FromBody] GetStatsInput data) { var userInput = new UserInput <GetStatsInput> { UserId = User.GetUserId(), Data = data }; var result = await Business .InvokeAsync <GetStatsCommand, UserInput <GetStatsInput>, CommandResult <GetStatsResult> >(_getStatsCommand, userInput).ConfigureAwait(false); return(result); }
/// <summary> /// Contructs a new image controller object. /// </summary> /// <param name="modal">The image service modal the controller will controll.</param> public ImageController(IImageServiceModal modal) { MyModal = modal; // Storing the Modal Of The System CommandDictionary = new Dictionary <int, ICommand>(); NewFileCommand file = new NewFileCommand(MyModal); LogCommand logger = new LogCommand(); CloseCommand close = new CloseCommand(); GetConfigCommand conf = new GetConfigCommand(); GetStatsCommand stats = new GetStatsCommand(); //link new file command with stats command file.InformNewFile += stats.PhotoAdded; close.InformClose += conf.HandlerRemoved; //close.inform_close += logger.OnLogChange; //TODO: check this file.InformNewFile += logger.OnLogChange; CommandDictionary.Add((int)CommandEnum.NewFileCommand, file); CommandDictionary.Add((int)CommandEnum.LogCommand, logger); CommandDictionary.Add((int)CommandEnum.CloseCommand, close); CommandDictionary.Add((int)CommandEnum.GetConfigCommand, conf); }