예제 #1
0
파일: Commands.cs 프로젝트: martinosk/dafda
        public static void ConfigureCommands(this IServiceCollection services, Action <CommandRegistry> configure)
        {
            var registry = new CommandRegistry(services);

            configure(registry);
            services.AddSingleton(registry);
            services.AddTransient <CommandProcessor>();
        }
예제 #2
0
파일: Commands.cs 프로젝트: martinosk/dafda
 public CommandProcessor(IServiceScopeFactory serviceScopeFactory, CommandRegistry commandRegistry)
 {
     _serviceScopeFactory = serviceScopeFactory;
     _commandRegistry     = commandRegistry;
 }