本文整理汇总了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>();
}
示例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");
}
示例3: ProposalController
public ProposalController(ICommandService commandService, IProjectDao projectDao, IProposalDao proposalDao,ISubprocessDao subprocessDao)
{
this.projectDao = projectDao;
this.commandService = commandService;
this.proposalDao = proposalDao;
this.subprocessDao = subprocessDao;
}
示例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;
}
示例5: StandardSelectionCommands
public StandardSelectionCommands(ICommandService commandService, IContextRegistry contextRegistry)
{
m_commandService = commandService;
m_contextRegistry = contextRegistry;
m_contextRegistry.ActiveContextChanged += ActiveContextChanging;
m_contextRegistry.ActiveContextChanged += ActiveContextChanged;
}
示例6: CircuitTestCommands
public CircuitTestCommands(ICommandService commandService,
IContextRegistry contextRegistry,
SchemaLoader schemaLoader)
{
m_commandService = commandService;
m_schemaLoader = schemaLoader;
}
示例7: CommandKeyGestureService
public CommandKeyGestureService(
[ImportMany] CommandDefinition[] commandDefinitions,
ICommandService commandService)
{
_commandDefinitions = commandDefinitions;
_commandService = commandService;
}
示例8: AvsysHandler
public AvsysHandler(IAvsysParser parser, ILogger logger, IDeviceRepository deviceRepository, ICommandService commandService)
{
this._parser = parser;
this._logger = logger;
this._deviceRepository = deviceRepository;
this._commandService = commandService;
}
示例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;
}
示例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);
}
示例11: BaseViewModel
public BaseViewModel(ICommandService commandService, IQueryService queryService, IMainWindow mainWindow, ILog logger)
{
_MainWindow = mainWindow;
_CommandService = commandService;
_QueryService = queryService;
_Logger = logger;
}
示例12: Service1
public Service1(IListenerService listenerService, ICommandService commandService)
{
_listenerService = listenerService;
_commandService = commandService;
InitializeComponent();
}
示例13: SetUp
public void SetUp()
{
this.commandService = Substitute.For<ICommandService>();
this.registrationService = Substitute.For<IRegistrationService>();
SystemTime.Set(TimeStamp);
}
示例14: TestCollectionService
public TestCollectionService(IConfigurationService configurationService, IFileService fileService, ICommandService commandService, IManifestService manifestService)
{
_configurationService = configurationService;
_fileService = fileService;
_commandService = commandService;
_manifestService = manifestService;
}
示例15: LevelEditorFileCommands
public LevelEditorFileCommands(
ICommandService commandService,
IDocumentRegistry documentRegistry,
IFileDialogService fileDialogService) : base(commandService,documentRegistry,fileDialogService)
{
RegisterCommands = (RegisterCommands & ~(CommandRegister.FileSaveAll | CommandRegister.FileClose));
}