Example #1
0
 public DependencyContainerBuilder(HostUnityContainer unityContainer)
 {
     //    this.InitializeServiceLocator(unityContainer);
     this.UnityContainer       = unityContainer;
     this.TypeRegistrarService = new TypeRegistrarService(this.UnityContainer);
     //  var scopeHostUnityContainer = new HostUnityContainer();
 }
Example #2
0
        /// <summary>
        /// The register.
        /// </summary>
        /// <param name="typeRegistrarService">
        /// The type registrar service.
        /// </param>
        public void Register(ITypeRegistrarService typeRegistrarService)
        {
            /*
             * if (!typeof(IApplyCatalogNameConvention).IsAssignableFrom(catalogNameConventionType))
             * {
             *  throw new Exception(
             *      "'{0}' must implement interface '{1}'".FormatWith(
             *          catalogNameConventionType.FullName,
             *          typeof(IApplyCatalogNameConvention).FullName));
             * }
             */
            typeRegistrarService.RegisterTypeUnityOfWork <IApplyCatalogNameConvention, ClassicModelNameConvention>();

            typeRegistrarService.RegisterTypeUnityOfWork <IConnectionStringFactory <CardValidationContext>, ConnectionStringFactory <CardValidationContext> >();
            typeRegistrarService.RegisterTypeUnityOfWork <IDbConnectionFactoryCustom <CardValidationContext>, DbConnectionFactory <CardValidationContext> >();
            typeRegistrarService.RegisterTypeUnityOfWork <IDbContextFactory <CardValidationContext>, ReadModelContextFactory <CardValidationContext> >();

            typeRegistrarService.RegisterTypeUnityOfWork <IConnectionStringFactory <CardValidationReadContext>, ConnectionStringFactory <CardValidationReadContext> >();
            typeRegistrarService.RegisterTypeUnityOfWork <IDbConnectionFactoryCustom <CardValidationReadContext>, DbConnectionFactory <CardValidationReadContext> >();
            typeRegistrarService.RegisterTypeUnityOfWork <IDbContextFactory <CardValidationReadContext>, ReadModelContextFactory <CardValidationReadContext> >();


            typeRegistrarService.RegisterType <ITestInfo, TestInfo>();

            typeRegistrarService.RegisterTypeUnityOfWork <IRepositoryReadCardValidation, RepositoryReadCardValidation>();
            typeRegistrarService.RegisterTypeUnityOfWork <IRepositoryCardValidation, RepositoryCardValidation>();
        }
Example #3
0
        /// <summary>
        /// The register.
        /// </summary>
        /// <param name="typeRegistrarService">
        /// The type registrar service.
        /// </param>
        public void Register(ITypeRegistrarService typeRegistrarService)
        {
            typeRegistrarService.RegisterTypeUnityOfWork <IApplyCatalogNameConvention, ClassicModelNameConvention>();
            typeRegistrarService.RegisterTypeUnityOfWork <IConnectionStringFactory <Bb_Monitoring>, ConnectionStringFactory <Bb_Monitoring> >();
            typeRegistrarService.RegisterTypeUnityOfWork <IDbConnectionFactoryCustom <Bb_Monitoring>, DbConnectionFactory <Bb_Monitoring> >();
            typeRegistrarService.RegisterTypeUnityOfWork <IDbContextFactory <Bb_Monitoring>, ReadModelContextFactory <Bb_Monitoring> >();

            typeRegistrarService.RegisterTypeUnityOfWork <ILoggingRepositoryRead, LoggingRepositoryRead>();
            typeRegistrarService.RegisterTypeUnityOfWork <ILoggingRepository, LoggingRepository>();
        }
Example #4
0
 /// <summary>
 ///     The register.
 /// </summary>
 /// <param name="typeRegistrarService">
 ///     The type registrar service.
 /// </param>
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeSingleton <IApiHeaderParameterMap, ApiHeaderParameterMappings>();
     typeRegistrarService.RegisterTypeSingleton <IApiDocConfig, ApiDocConfig>();
 }
Example #5
0
 /// <summary>
 ///     The register.
 /// </summary>
 /// <param name="typeRegistrarService">
 ///     The type registrar service.
 /// </param>
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeSingleton <IDbConnectionFactoryCustom <CardValidationContext>, DbConnectionFactoryTest <CardValidationContext> >();
     typeRegistrarService.RegisterTypeSingleton <IDbConnectionFactoryCustom <CardValidationReadContext>, DbConnectionFactoryTest <CardValidationReadContext> >();
 }
Example #6
0
 /// <summary>
 /// The register.
 /// </summary>
 /// <param name="typeRegistrarService">
 /// The type registrar service.
 /// </param>
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     // typeRegistrarService.RegisterTypeSingleton<IDbConnectionFactoryCustom<ContextBase>, DbConnectionFactoryTest<ContextBase>>();
     typeRegistrarService.RegisterTypeSingleton <ITestInfo, TestInfo>();
 }
Example #7
0
 /// <summary>
 /// The register.
 /// </summary>
 /// <param name="typeRegistrarService">
 /// The type registrar service.
 /// </param>
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeUnityOfWork <ILocalizationSupport, LocalizationSupport>();
 }
Example #8
0
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeSingleton <IApplicationDependecyResolver, ApplicationDependecyResolver>();
 }
Example #9
0
 /// <summary>
 ///     The register.
 /// </summary>
 /// <param name="typeRegistrarService">
 ///     The type registrar service.
 /// </param>
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeUnityOfWork <ICardValidatorService, CardValidatorService>();
 }
Example #10
0
 /// <summary>
 /// The register.
 /// </summary>
 /// <param name="typeRegistrarService">
 /// The type registrar service.
 /// </param>
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeUnityOfWork <IRequestInfo, RequestInfo>();
     typeRegistrarService.RegisterTypeUnityOfWork <ITransactionScopeProvider, DefaultAsyncTransactionScope>();
 }
Example #11
0
 /// <summary>
 /// The register.
 /// </summary>
 /// <param name="typeRegistrarService">
 /// The type registrar service.
 /// </param>
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeUnityOfWork <IMessageValidator, MessageValidator>();
 }
Example #12
0
 /// <summary>
 /// The register.
 /// </summary>
 /// <param name="typeRegistrarService">
 /// The type registrar service.
 /// </param>
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeUnityOfWork <IRequestInfo, RequestInfo>();
 }
Example #13
0
 public void Register(ITypeRegistrarService typeRegistrarService)
 {
     typeRegistrarService.RegisterTypeSingleton <IDbInitializerConfig, DefaultDbInitializerConfig>();
 }