コード例 #1
0
 public CommandSecurityProxies(
     ITypeDiscoverer typeDiscoverer,
     ICodeGenerator codeGenerator,
     ICommandSecurityManager commandSecurityManager,
     WebConfiguration configuration)
 {
     _typeDiscoverer = typeDiscoverer;
     _codeGenerator = codeGenerator;
     _configuration = configuration;
     _commandSecurityManager = commandSecurityManager;
 }
コード例 #2
0
 public CommandSecurityProxies(
     ITypeDiscoverer typeDiscoverer,
     ICodeGenerator codeGenerator,
     ICommandSecurityManager commandSecurityManager,
     WebConfiguration configuration)
 {
     _typeDiscoverer         = typeDiscoverer;
     _codeGenerator          = codeGenerator;
     _configuration          = configuration;
     _commandSecurityManager = commandSecurityManager;
 }
コード例 #3
0
 public CommandSecurityProxies(
     ITypeFinder typeFinder,
     ICodeGenerator codeGenerator,
     ICommandSecurityManager commandSecurityManager,
     IApplicationResources applicationResources,
     WebConfiguration configuration)
 {
     _typeFinder             = typeFinder;
     _codeGenerator          = codeGenerator;
     _configuration          = configuration;
     _applicationResources   = applicationResources;
     _commandSecurityManager = commandSecurityManager;
 }
コード例 #4
0
ファイル: CommandCoordinator.cs プロジェクト: JoB70/Bifrost
		/// <summary>
		/// Initializes a new instance of the <see cref="CommandCoordinator">CommandCoordinator</see>
		/// </summary>
		/// <param name="commandHandlerManager">A <see cref="ICommandHandlerManager"/> for handling commands</param>
		/// <param name="commandContextManager">A <see cref="ICommandContextManager"/> for establishing a <see cref="CommandContext"/></param>
        /// <param name="commandSecurityManager">A <see cref="ICommandSecurityManager"/> for dealing with security and commands</param>
		/// <param name="commandValidationService">A <see cref="ICommandValidationService"/> for validating a <see cref="ICommand"/> before handling</param>
		/// <param name="localizer">A <see cref="ILocalizer"/> to use for controlling localization of current thread when handling commands</param>
		public CommandCoordinator(
			ICommandHandlerManager commandHandlerManager,
			ICommandContextManager commandContextManager,
            ICommandSecurityManager commandSecurityManager,
            ICommandValidationService commandValidationService,
			ILocalizer localizer)
		{
			_commandHandlerManager = commandHandlerManager;
			_commandContextManager = commandContextManager;
            _commandSecurityManager = commandSecurityManager;
		    _commandValidationService = commandValidationService;
	    	_localizer = localizer;
		}
コード例 #5
0
ファイル: CommandCoordinator.cs プロジェクト: llenroc/Bifrost
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandCoordinator">CommandCoordinator</see>
 /// </summary>
 /// <param name="commandHandlerManager">A <see cref="ICommandHandlerManager"/> for handling commands</param>
 /// <param name="commandContextManager">A <see cref="ICommandContextManager"/> for establishing a <see cref="CommandContext"/></param>
 /// <param name="commandSecurityManager">A <see cref="ICommandSecurityManager"/> for dealing with security and commands</param>
 /// <param name="commandValidators">A <see cref="ICommandValidators"/> for validating a <see cref="ICommand"/> before handling</param>
 /// <param name="localizer">A <see cref="ILocalizer"/> to use for controlling localization of current thread when handling commands</param>
 public CommandCoordinator(
     ICommandHandlerManager commandHandlerManager,
     ICommandContextManager commandContextManager,
     ICommandSecurityManager commandSecurityManager,
     ICommandValidators commandValidators,
     ILocalizer localizer)
 {
     _commandHandlerManager    = commandHandlerManager;
     _commandContextManager    = commandContextManager;
     _commandSecurityManager   = commandSecurityManager;
     _commandValidationService = commandValidators;
     _localizer = localizer;
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandCoordinator">CommandCoordinator</see>
 /// </summary>
 /// <param name="commandHandlerManager">A <see cref="ICommandHandlerManager"/> for handling commands</param>
 /// <param name="commandContextManager">A <see cref="ICommandContextManager"/> for establishing a <see cref="CommandContext"/></param>
 /// <param name="commandSecurityManager">A <see cref="ICommandSecurityManager"/> for dealing with security and commands</param>
 /// <param name="commandValidators">A <see cref="ICommandValidators"/> for validating a <see cref="ICommand"/> before handling</param>
 /// <param name="localizer">A <see cref="ILocalizer"/> to use for controlling localization of current thread when handling commands</param>
 /// <param name="exceptionPublisher">An <see cref="IExceptionPublisher"/> to send exceptions to</param>
 public CommandCoordinator(
     ICommandHandlerManager commandHandlerManager,
     ICommandContextManager commandContextManager,
     ICommandSecurityManager commandSecurityManager,
     ICommandValidators commandValidators,
     ILocalizer localizer,
     IExceptionPublisher exceptionPublisher)
 {
     _commandHandlerManager = commandHandlerManager;
     _commandContextManager = commandContextManager;
     _commandSecurityManager = commandSecurityManager;
     _commandValidationService = commandValidators;
     _localizer = localizer;
     _exceptionPublisher = exceptionPublisher;
 }
コード例 #7
0
 public CommandSecurityService(ICommandSecurityManager commandSecurityManager, ITypeDiscoverer typeDiscoverer)
 {
     _typeDiscoverer         = typeDiscoverer;
     _commandSecurityManager = commandSecurityManager;
 }
コード例 #8
0
 public CommandSecurityService(ICommandSecurityManager commandSecurityManager)
 {
     _commandSecurityManager = commandSecurityManager;
 }
コード例 #9
0
 public CommandSecurityService(ICommandSecurityManager commandSecurityManager, ITypeDiscoverer typeDiscoverer)
 {
     _typeDiscoverer = typeDiscoverer;
     _commandSecurityManager = commandSecurityManager;
 }