コード例 #1
0
ファイル: LocalisationCommand.cs プロジェクト: akobr/texo.ui
 public LocalisationCommand(ISolutionDirectoryProvider solutionProvider)
     : base(solutionProvider)
 {
     RegisterQuery(SpinSportConstants.QUERY_LIST, (Func <CommandContext, ICommandResult>) this.List);
     RegisterQuery(SpinSportConstants.QUERY_GET, (Func <CommandContext, ICommandResult>) this.Get);
     RegisterQuery(SpinSportConstants.QUERY_SET, (Func <CommandContext, ICommandResult>) this.Set);
 }
コード例 #2
0
        public SpinSportCommand(ISolutionDirectoryProvider solutionProvider)
        {
            this.solutionProvider = solutionProvider ?? throw new ArgumentNullException(nameof(solutionProvider));

            RegisterQuery(SpinSportConstants.QUERY_CONFIG_LOCALISATION, new LocalisationCommand(solutionProvider));
            RegisterQuery(SpinSportConstants.QUERY_CONFIG_COLOUR, new ColourCommand(solutionProvider));
            RegisterQuery(SpinSportConstants.QUERY_CONFIG_COLOUR_USAGE, new ColourUsageCommand(solutionProvider));
            RegisterQuery(SpinSportConstants.QUERY_CODE, new CodeCommand());
        }
コード例 #3
0
 protected BaseSolutionCommand(ISolutionDirectoryProvider solutionProvider)
 {
     this.solutionProvider = solutionProvider ?? throw new ArgumentNullException(nameof(solutionProvider));
 }