private static void InitializeStructureMap(IInitializationExpression ex) { ex.AddRegistry<MassTransitRegistry>(); ex.AddRegistry<CoreRegistry>(); _signalRRegistry = new SignalRRegistry(); ex.AddRegistry(_signalRRegistry); }
private static void InitializeStructureMap(IInitializationExpression ex) { ex.AddRegistry <MassTransitRegistry>(); ex.AddRegistry <CoreRegistry>(); _signalRRegistry = new SignalRRegistry(); ex.AddRegistry(_signalRRegistry); }
private void ConfigureStructureMap(IInitializationExpression initializer) { initializer.Scan(y => { y.Assembly("TodayIShall.Core"); y.WithDefaultConventions(); }); initializer.ForRequestedType<IAuthCookieGenerator>().TheDefaultIsConcreteType<AuthCookieGenerator>(); initializer.AddRegistry(new MongoRegistry()); }
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>(); }
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>(); }