public ScheduledQuantitiesEventController()
        {
            var builder = new ContainerBuilder();

            builder.Register(context => ServiceSettings.Get(
                                 "xxxxx",
                                 Nomination.Web.Api.Properties.Settings.Default.Environment
                                 )
                             );
            builder.RegisterType <ScheduledQuantityEventRepository>().As <IScheduledQuantityEventRepository>();
            builder.RegisterType <ScheduledQuantityEventGet>().As <IScheduledQuantityEventGet>();
            builder.RegisterType <ScheduledQuantityEventCreate>().As <IScheduledQuantityEventCreate>();
            builder.RegisterType <ScheduledQuantityEventProcess>().As <IScheduledQuantityEventProcess>();

            builder.RegisterType <NaesbEventRepository>().As <INaesbEventRepository>();
            builder.RegisterType <NaesbEventGet>().As <INaesbEventGet>();

            builder.RegisterType <NaesbPipelineRepository>().As <INaesbPipelineRepository>();
            builder.RegisterType <NaesbPipelineGet>().As <INaesbPipelineGet>();

            builder.RegisterType <NaesbUtilityRepository>().As <INaesbUtilityRepository>();
            builder.RegisterType <NaesbUtilityGet>().As <INaesbUtilityGet>();

            _container = builder.Build();
        }
コード例 #2
0
        public NaesbConfirmationResponseEventController()
        {
            var builder = new ContainerBuilder();

            builder.Register(context => ServiceSettings.Get(
                                 "xxxxx",
                                 Nomination.Web.Api.Properties.Settings.Default.Environment
                                 )
                             );
            builder.RegisterType <NaesbEventProcessRespository>().As <INaesbEventProcessRepository>();
            builder.RegisterType <NaesbConfirmationResponseCreate>().As <INaesbConfirmationResponseCreate>();
            builder.RegisterType <NaesbConfirmationResponseGet>().As <INaesbConfirmationResponseGet>();

            builder.RegisterType <ConfirmationResponseEventRepository>().As <IConfirmationResponseEventRepository>();
            builder.RegisterType <ConfirmationResponseEventCreate>().As <IConfirmationResponseEventCreate>();
            builder.RegisterType <ConfirmationResponseEventProcess>().As <IConfirmationResponseEventProcess>();
            builder.RegisterType <ConfirmationResponseEventGet>().As <IConfirmationResponseEventGet>();

            builder.RegisterType <NaesbPipelineRepository>().As <INaesbPipelineRepository>();
            builder.RegisterType <NaesbPipelineGet>().As <INaesbPipelineGet>();

            builder.RegisterType <NaesbUtilityRepository>().As <INaesbUtilityRepository>();
            builder.RegisterType <NaesbUtilityGet>().As <INaesbUtilityGet>();

            builder.RegisterType <NaesbEventProcessRespository>().As <INaesbEventProcessRepository>();
            builder.RegisterType <NaesbEventProcessGet>().As <INaesbEventProcessGet>();
            builder.RegisterType <NaesbEventProcessCreate>().As <INaesbEventProcessCreate>();
            builder.RegisterType <NaesbEventProcessUpdate>().As <INaesbEventProcessUpdate>();

            builder.RegisterType <NaesbEventRepository>().As <INaesbEventRepository>();
            builder.RegisterType <NaesbEventGet>().As <INaesbEventGet>();
            builder.RegisterType <NaesbEventUpdate>().As <INaesbEventUpdate>();

            _container = builder.Build();
        }
コード例 #3
0
        public NaesbEventController()
        {
            var builder = new ContainerBuilder();

            builder.Register(context => ServiceSettings.Get(
                                 "xxxxx",
                                 Nomination.Web.Api.Properties.Settings.Default.Environment
                                 )
                             );

            builder.RegisterType <NaesbEventRepository>().As <INaesbEventRepository>();
            builder.RegisterType <NaesbEventGet>().As <INaesbEventGet>();
            builder.RegisterType <NaesbEventGetList>().As <INaesbEventGetList>();
            builder.RegisterType <NaesbEventUpdate>().As <INaesbEventUpdate>();

            _container = builder.Build();
        }
コード例 #4
0
        public RequestForConfirmationEventController()
        {
            var builder = new ContainerBuilder();

            builder.Register(context => ServiceSettings.Get(
                                 "xxxxx",
                                 Nomination.Web.Api.Properties.Settings.Default.Environment
                                 )
                             );
            builder.RegisterType <RequestForConfirmationEventRepository>().As <IRequestForConfirmationEventRepository>();
            builder.RegisterType <RequestForConfirmationEventGet>().As <IRequestForConfirmationEventGet>();

            builder.RegisterType <RequestForConfirmationEventRepository>().As <IRequestForConfirmationEventRepository>();
            builder.RegisterType <RequestForConfirmationEventCreate>().As <IRequestForConfirmationEventCreate>();

            _container = builder.Build();
        }
コード例 #5
0
        private static ContainerBuilder ContainerBuilder()
        {
            ContainerBuilder builder = new ContainerBuilder();

            builder.Register(context => ServiceSettings.Get(
                                 Properties.Settings.Default.ContentUserId,
                                 Properties.Settings.Default.Environment)
                             );

            builder.RegisterType <NaesbRepository>().As <INaesbRepository>();

            builder.RegisterType <NaesbEventRepository>().As <INaesbEventRepository>();
            builder.RegisterType <NaesbEventGet>().As <INaesbEventGet>();
            builder.RegisterType <NaesbEventChange>().As <INaesbEventChange>();
            builder.RegisterType <NaesbEventUpdate>().As <INaesbEventUpdate>();

            builder.RegisterType <NaesbRequestForConfirmationCreate>().As <INaesbRequestForConfirmationCreate>();
            builder.RegisterType <NaesbRequestForConfirmationHeaderGet>().As <INaesbRequestForConfirmationHeaderGet>();
            builder.RegisterType <NaesbRequestForConfirmationGet>().As <INaesbRequestForConfirmationGet>();
            builder.RegisterType <RequestForConfirmationRepository>().As <IRequestForConfirmationRepository>();
            builder.RegisterType <RequestForConfirmationEventRepository>().As <IRequestForConfirmationEventRepository>();
            builder.RegisterType <RequestForConfirmationGet>().As <IRequestForConfirmationGet>();
            builder.RegisterType <RequestForConfirmationEventCreate>().As <IRequestForConfirmationEventCreate>();

            builder.RegisterType <NaesbEventProcessRespository>().As <INaesbEventProcessRepository>();
            builder.RegisterType <NaesbEventProcessCreate>().As <INaesbEventProcessCreate>();
            builder.RegisterType <NaesbEventProcessChange>().As <INaesbEventProcessChange>();
            builder.RegisterType <NaesbEventProcessUpdate>().As <INaesbEventProcessUpdate>();
            builder.RegisterType <NaesbEventProcessRfcCompletion>().As <INaesbEventProcessRfcCompletion>();
            builder.RegisterType <NaesbEventProcessGet>().As <INaesbEventProcessGet>();
            builder.RegisterType <NaesbEventProcessError>().As <INaesbEventProcessError>();

            builder.RegisterType <NaesbPipelineRepository>().As <INaesbPipelineRepository>();
            builder.RegisterType <NaesbPipelineGet>().As <INaesbPipelineGet>();
            builder.RegisterType <NaesbPipelineGetByPipeline>().As <INaesbPipelineGetByPipeline>();

            builder.RegisterType <NaesbUtilityRepository>().As <INaesbUtilityRepository>();
            builder.RegisterType <NaesbUtilityGet>().As <INaesbUtilityGet>();
            builder.RegisterType <NaesbUtilityGetByUtility>().As <INaesbUtilityGetByUtility>();

            builder.RegisterType <NaesbQuickResponseHeaderGet>().As <INaesbQuickResponseHeaderGet>();
            builder.RegisterType <NaesbQuickResponseGet>().As <INaesbQuickResponseGet>();
            builder.RegisterType <NaesbQuickResponseCreate>().As <INaesbQuickResponseCreate>();

            builder.RegisterType <NaesbConfirmationResponseCreate>().As <INaesbConfirmationResponseCreate>();
            builder.RegisterType <ConfirmationResponseEventRepository>().As <IConfirmationResponseEventRepository>();
            builder.RegisterType <ConfirmationResponseEventGet>().As <IConfirmationResponseEventGet>();
            builder.RegisterType <ConfirmationResponseEventCreate>().As <IConfirmationResponseEventCreate>();
            builder.RegisterType <ConfirmationResponseEventProcess>().As <IConfirmationResponseEventProcess>();

            builder.RegisterType <NaesbOperatorScheduledQuantitiesCreate>().As <INaesbOperatorScheduledQuantitiesCreate>();
            builder.RegisterType <ScheduledQuantityEventRepository>().As <IScheduledQuantityEventRepository>();
            builder.RegisterType <ScheduledQuantityEventGet>().As <IScheduledQuantityEventGet>();
            builder.RegisterType <ScheduledQuantityEventCreate>().As <IScheduledQuantityEventCreate>();
            builder.RegisterType <ScheduledQuantityEventProcess>().As <IScheduledQuantityEventProcess>();

            builder.RegisterType <NaesbEventGetRfcsToProcess>().As <INaesbEventGetRfcsToProcess>();

            builder.RegisterType <HttpClientHandler>().As <IHttpClient>();
            builder.RegisterType <IncidentRequestor>().As <IResourse <Incident> >();
            builder.Register(context => IncidentRequestorSetting.Get(
                                 Properties.Settings.Default.RemedyUriCredentials,
                                 Properties.Settings.Default.ContentApplicationName,
                                 Properties.Settings.Default.ContentUserId)
                             );

            return(builder);
        }