Esempio n. 1
0
        public CommandStore(IOptions <CommandStoreOptions> options,
                            IServiceProvider serviceProvider,
                            IPermissionRegistry permissionRegistry,
                            ICommandPermissionBuilder commandPermissionBuilder,
                            ICommandDataStore commandDataStore)
        {
            m_Comparer                 = new PriorityComparer(PriortyComparisonMode.HighestFirst);
            m_CommandSources           = options.Value.CreateCommandSources(serviceProvider);
            m_Options                  = options;
            m_ServiceProvider          = serviceProvider;
            m_PermissionRegistry       = permissionRegistry;
            m_CommandPermissionBuilder = commandPermissionBuilder;
            m_CommandDataStore         = commandDataStore;

            options.Value.OnCommandSourcesChanged += OnCommandSourcesChanged;
            OnCommandSourcesChanged();
        }
 public AddTodoListHandler(ICommandDataStore store)
 {
     _store = store;
 }
Esempio n. 3
0
 public CommandContext(ICommandServiceProvider commandServiceProvider, ICommandDataStore dataStore)
 {
     this.commandServiceProvider = commandServiceProvider;
     DataStore = dataStore;
 }