예제 #1
0
        private static void InitializeStructureMap(IInitializationExpression ex)
        {
            ex.AddRegistry<MassTransitRegistry>();
            ex.AddRegistry<CoreRegistry>();

            _signalRRegistry = new SignalRRegistry();
            ex.AddRegistry(_signalRRegistry);
        }
예제 #2
0
        private static void InitializeStructureMap(IInitializationExpression ex)
        {
            ex.AddRegistry <MassTransitRegistry>();
            ex.AddRegistry <CoreRegistry>();

            _signalRRegistry = new SignalRRegistry();
            ex.AddRegistry(_signalRRegistry);
        }
예제 #3
0
 private void ConfigureStructureMap(IInitializationExpression initializer)
 {
     initializer.Scan(y =>
     {
         y.Assembly("TodayIShall.Core");
         y.WithDefaultConventions();
     });
     initializer.ForRequestedType<IAuthCookieGenerator>().TheDefaultIsConcreteType<AuthCookieGenerator>();
     initializer.AddRegistry(new MongoRegistry());
 }
예제 #4
0
 private static void InitializeStructureMap(IInitializationExpression x)
 {
     x.Scan(y =>
     {
         y.Assembly("ShortestPath.Web");
         y.Assembly("ShortestPath.Core");
         y.With<DefaultConventionScanner>();
     }
     );
     x.AddRegistry<NHibernateRegistry>();
     x.ForRequestedType<IThreadCache>().CacheBy(InstanceScope.Hybrid).TheDefaultIsConcreteType<ThreadCache>();
 }
예제 #5
0
        public void Configure(IInitializationExpression initialize)
        {
            initialize.AddRegistry<CommonRegistry>();

            Db.ImplementSQL.Configuration.Instance.Configure(initialize);

            initialize.Scan(x =>
            {
                x.Assembly("Service.ContractImplement");
                x.WithDefaultConventions();
            });
        }
 protected virtual void InitializeStructureMap(IInitializationExpression ex)
 {
     ex.ForSingletonOf<SparkViewFactory>();
     ex.For<IServiceLocator>().Use<StructureMapServiceLocator>();
     ex.For<ISparkSettings>().Use(GetSparkSettings);
     ex.For(typeof(ISparkViewRenderer<>)).Use(typeof(SparkViewRenderer<>));
     ex.AddRegistry(new SweetVidsCoreRegistry());
     ex.AddRegistry(new SweetVidsWebRegistry());
 }
 protected virtual void InitializeContainer(IInitializationExpression initializationExpression)
 {
     initializationExpression.AddRegistry <PluginStorageWithSqlPersisterMockRegistry>();
 }
		protected virtual void InitializeContainer(IInitializationExpression initializationExpression)
		{
			initializationExpression.AddRegistry<PluginStorageWithSqlPersisterMockRegistry>();
		}