public EventHandlerDependencyRegister(IIoCManager ioCManager, IDependencyMapProvider commandHandlerTypeProvider, params Assembly[] assemblies) { if (_ioCManager != null) { _ioCManagerThunk = () => ioCManager; } if (commandHandlerTypeProvider != null) { _eventHandlerTypeProviderThunk = () => commandHandlerTypeProvider; } _assembliesThunk = () => assemblies; }
public EventBusDependencyRegister(IUnityContainer unityContainer, IDependencyMapProvider commandBusTypeProvider, params Assembly[] assemblies) { if (unityContainer == null) { throw new ArgumentNullException(nameof(unityContainer)); } _containerThunk = () => unityContainer; if (_commandBusTypeProviderThunk != null) { _commandBusTypeProviderThunk = () => commandBusTypeProvider; } _assembliesThunk = () => assemblies; }
public EventBusDependencyRegister(IIoCManager ioCManager, IDependencyMapProvider eventBusTypeProvider, params Assembly[] assemblies) { if (_ioCManager == null) { throw new ArgumentNullException(nameof(_ioCManager)); } _ioCManagerThunk = () => _ioCManager; if (_eventBusTypeProviderThunk != null) { _eventBusTypeProviderThunk = () => eventBusTypeProvider; } _assembliesThunk = () => assemblies; }
public CommandBusDependencyRegister(IIoCManager ioCManager, IDependencyMapProvider commandBusTypeProvider, params Assembly[] assemblies) { if (_ioCManager != null) { _ioCManagerThunk = () => ioCManager; } if (_commandBusTypeProviderThunk != null) { _commandBusTypeProviderThunk = () => commandBusTypeProvider; } if (assemblies != null) { _assembliesThunk = () => assemblies; } }