当前位置: 首页>>代码示例>>C#>>正文


C# ICommandService类代码示例

本文整理汇总了C#中ICommandService的典型用法代码示例。如果您正苦于以下问题:C# ICommandService类的具体用法?C# ICommandService怎么用?C# ICommandService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ICommandService类属于命名空间,在下文中一共展示了ICommandService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InitializeENodeFramework

        static void InitializeENodeFramework()
        {
            var setting = new ConfigurationSetting
            {
                SqlDefaultConnectionString = ConfigurationManager.AppSettings["connectionString"],
                EnableGroupCommitEvent = false
            };
            var assemblies = new[]
            {
                Assembly.Load("NoteSample.Domain"),
                Assembly.Load("NoteSample.CommandHandlers"),
                Assembly.Load("NoteSample.Commands"),
                Assembly.GetExecutingAssembly()
            };
            _configuration = ECommonConfiguration
                .Create()
                .UseAutofac()
                .RegisterCommonComponents()
                .UseLog4Net()
                .UseJsonNet()
                .RegisterUnhandledExceptionHandler()
                .CreateENode(setting)
                .RegisterENodeComponents()
                .UseSqlServerEventStore()
                .RegisterBusinessComponents(assemblies)
                .InitializeBusinessAssemblies(assemblies)
                .UseEQueue()
                .StartEQueue();

            _commandService = ObjectContainer.Resolve<ICommandService>();
            _memoryCache = ObjectContainer.Resolve<IMemoryCache>();
        }
开发者ID:ivivisoft,项目名称:enode,代码行数:32,代码来源:Program.cs

示例2: Editor

        public Editor(
            ICommandService commandService,
            IControlHostService controlHostService,
            IDocumentService documentService,
            IDocumentRegistry documentRegistry,
            IFileDialogService fileDialogService
            )
        {
            m_commandService = commandService;
            m_controlHostService = controlHostService;
            m_documentService = documentService;
            m_documentRegistry = documentRegistry;
            m_fileDialogService = fileDialogService;

            // create a document client for each file type
            m_txtDocumentClient = new DocumentClient(this, ".txt");
            m_csDocumentClient = new DocumentClient(this, ".cs");
            m_luaDocumentClient = new DocumentClient(this, ".lua");
            m_nutDocumentClient = new DocumentClient(this, ".nut");
            m_pyDocumentClient = new DocumentClient(this, ".py");
            m_xmlDocumentClient = new DocumentClient(this, ".xml");
            m_daeDocumentClient = new DocumentClient(this, ".dae");
            m_cgDocumentClient = new DocumentClient(this, ".cg");

        }
开发者ID:vincenthamm,项目名称:ATF,代码行数:25,代码来源:Editor.cs

示例3: ProposalController

 public ProposalController(ICommandService commandService, IProjectDao projectDao, IProposalDao proposalDao,ISubprocessDao subprocessDao)
 {
     this.projectDao = projectDao;
     this.commandService = commandService;
     this.proposalDao = proposalDao;
     this.subprocessDao = subprocessDao;
 }
开发者ID:macchicken,项目名称:MobileWorkManagement,代码行数:7,代码来源:ProposalController.cs

示例4: ContextMenuAdapter

 /// <summary>
 /// Constructor</summary>
 /// <param name="commandService">Command service</param>
 /// <param name="providers">Enumeration of context menu command providers</param>
 public ContextMenuAdapter(
     ICommandService commandService,
     IEnumerable<Lazy<IContextMenuCommandProvider>> providers)
 {
     m_commandService = commandService;
     m_providers = providers;
 }
开发者ID:JanDeHud,项目名称:LevelEditor,代码行数:11,代码来源:ContextMenuAdapter.cs

示例5: StandardSelectionCommands

 public StandardSelectionCommands(ICommandService commandService, IContextRegistry contextRegistry)
 {
     m_commandService = commandService;
     m_contextRegistry = contextRegistry;
     m_contextRegistry.ActiveContextChanged += ActiveContextChanging;
     m_contextRegistry.ActiveContextChanged += ActiveContextChanged;
 }
开发者ID:sbambach,项目名称:ATF,代码行数:7,代码来源:StandardSelectionCommands.cs

示例6: CircuitTestCommands

 public CircuitTestCommands(ICommandService commandService, 
     IContextRegistry contextRegistry,
     SchemaLoader schemaLoader)
 {
     m_commandService = commandService;
     m_schemaLoader = schemaLoader;
 }
开发者ID:sbambach,项目名称:ATF,代码行数:7,代码来源:CircuitTestCommands.cs

示例7: CommandKeyGestureService

 public CommandKeyGestureService(
     [ImportMany] CommandDefinition[] commandDefinitions,
     ICommandService commandService)
 {
     _commandDefinitions = commandDefinitions;
     _commandService = commandService;
 }
开发者ID:4ux-nbIx,项目名称:gemini,代码行数:7,代码来源:CommandKeyGestureService.cs

示例8: AvsysHandler

 public AvsysHandler(IAvsysParser parser, ILogger logger, IDeviceRepository deviceRepository, ICommandService commandService)
 {
     this._parser = parser;
     this._logger = logger;
     this._deviceRepository = deviceRepository;
     this._commandService = commandService;
 }
开发者ID:andrewshort,项目名称:Pax,代码行数:7,代码来源:AvsysHandler.cs

示例9: Editor

        public Editor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry,
            IDocumentRegistry documentRegistry,
            IDocumentService documentService,
            PrototypeLister prototypeLister,
            SchemaLoader schemaLoader,
            DiagramTheme diagramTheme)
        {
            m_controlHostService = controlHostService;
            m_commandService = commandService;
            m_contextRegistry = contextRegistry;
            m_documentRegistry = documentRegistry;
            m_documentService = documentService;
            m_prototypeLister = prototypeLister;

            m_schemaLoader = schemaLoader;

            m_theme = new D2dDiagramTheme();
            m_fsmRenderer = new D2dDigraphRenderer<State, Transition>(m_theme);

            string initialDirectory = Path.Combine(Directory.GetCurrentDirectory(), "..\\..\\..\\..\\components\\wws_atf\\Samples\\FsmEditor\\data");
            EditorInfo.InitialDirectory = initialDirectory;
        }
开发者ID:Joxx0r,项目名称:ATF,代码行数:25,代码来源:Editor.cs

示例10: HelpWindowViewModel

        public HelpWindowViewModel()
        {
            _commandService = ServiceResolver.Get<ICommandService>();

            var commands = _commandService.GetCommandNames()
                .Where(command => !command.Item1.Contains("Base"))
                .OrderBy(command => command.Item1)
                .Select(command => new CommandHelpViewModel
                    {
                        Name = command.Item1,
                        Description = command.Item2,
                        Properties = _commandService.GetCommandProperties(command.Item1)
                                       .Where(prop => prop.Item1 != "Test")
                                       .Select(prop => new CommandPropertyHelpViewModel
                                           {
                                               Name = prop.Item1,
                                               Description = prop.Item2,
                                           })
                                       .ToList(),
                    })
                .ToList();

            Commands = CollectionViewSource.GetDefaultView(commands);
            ClearFilterCommand = new RelayCommand(parameter => CommandFilter = string.Empty);
        }
开发者ID:MGetmanov,项目名称:Selenite,代码行数:25,代码来源:HelpWindowViewModel.cs

示例11: BaseViewModel

 public BaseViewModel(ICommandService commandService, IQueryService queryService, IMainWindow mainWindow, ILog logger)
 {
     _MainWindow = mainWindow;
     _CommandService = commandService;
     _QueryService = queryService;
     _Logger = logger;
 }
开发者ID:iliasjennane,项目名称:pokerleaguemanager,代码行数:7,代码来源:BaseViewModel.cs

示例12: Service1

        public Service1(IListenerService listenerService, ICommandService commandService)
        {
            _listenerService = listenerService;
            _commandService = commandService;

            InitializeComponent();
        }
开发者ID:andrewshort,项目名称:Pax,代码行数:7,代码来源:Service1.cs

示例13: SetUp

        public void SetUp()
        {
            this.commandService = Substitute.For<ICommandService>();
            this.registrationService = Substitute.For<IRegistrationService>();

            SystemTime.Set(TimeStamp);
        }
开发者ID:Jan-Olof,项目名称:CQRS,代码行数:7,代码来源:RegistrationControllerTests.cs

示例14: TestCollectionService

 public TestCollectionService(IConfigurationService configurationService, IFileService fileService, ICommandService commandService, IManifestService manifestService)
 {
     _configurationService = configurationService;
     _fileService = fileService;
     _commandService = commandService;
     _manifestService = manifestService;
 }
开发者ID:MGetmanov,项目名称:Selenite,代码行数:7,代码来源:TestCollectionService.cs

示例15: LevelEditorFileCommands

 public LevelEditorFileCommands(
     ICommandService commandService,
     IDocumentRegistry documentRegistry,
     IFileDialogService fileDialogService) : base(commandService,documentRegistry,fileDialogService)
 {
     RegisterCommands = (RegisterCommands & ~(CommandRegister.FileSaveAll | CommandRegister.FileClose));
 }
开发者ID:JanDeHud,项目名称:LevelEditor,代码行数:7,代码来源:LevelEditorFileCommands.cs


注:本文中的ICommandService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。