Beispiel #1
0
        public LoggingController()
        {
            var container = new ContainerBuilder();

            container.RegisterType <LoggingQueryImplementation>().As <ILoggingQueries>();
            container.RegisterType <LoggingCommandImplementation>().As <ILoggingCommands>();

            _lifetimeScope = container.Build().BeginLifetimeScope();
            _queries       = _lifetimeScope.Resolve <ILoggingQueries>();
            _commands      = _lifetimeScope.Resolve <ILoggingCommands>();
        }
Beispiel #2
0
 public LoggingController(ILoggingQueries loggingQueries)
 {
     _loggingQueries = loggingQueries;
 }