public void RegisterComponents(IKernel container) {
            container.Rebind<IEventManager>().ToConstant(eventManager);
            container.Bind<IVersionOneProcessor>().ToConstant(v1Processor);
            container.Rebind<ILogger>().To<Logger>();
            container.Bind<WorkitemWriterServiceConfiguration>().ToConstant(configuration);
            container.Bind<IWorkitemWriter>().To<WorkitemWriter>();
            container.Bind<IWorkitemReader>().To<WorkitemReader>();

            workitemWriter = container.Get<IWorkitemWriter>();
            workitemReader = container.Get<IWorkitemReader>();
            externalWorkitemQuerier = container.Get<ClosedExternalWorkitemQuerier>();
            startupChecker = container.Get<StartupChecker>();
        }
        public void RegisterComponents(IKernel container)
        {
            container.Rebind <IEventManager>().ToConstant(eventManager);
            container.Bind <IVersionOneProcessor>().ToConstant(v1Processor);
            container.Rebind <ILogger>().To <Logger>();
            container.Bind <WorkitemWriterServiceConfiguration>().ToConstant(configuration);
            container.Bind <IWorkitemWriter>().To <WorkitemWriter>();
            container.Bind <IWorkitemReader>().To <WorkitemReader>();

            workitemWriter          = container.Get <IWorkitemWriter>();
            workitemReader          = container.Get <IWorkitemReader>();
            externalWorkitemQuerier = container.Get <ClosedExternalWorkitemQuerier>();
            startupChecker          = container.Get <StartupChecker>();
        }