public void Initialize(Settings settings,CompositionContainer container = null) { if (container!=null) _container.SetContainer(container); _settings.Settings = settings; Initialize(); }
public static CompositionContainer MakeContainerAndCache(Settings settings,IEnumerable<Type> types) { var catalog = MockHelper.CatalogForContainer(new[]{typeof (ITypedPool).Assembly}, types); var container = new CompositionContainer(catalog); container.GetExportedValue<ICacheServicing>().Initialize(settings,container); return container; }
private void Initialize(params Enum[] flags) { var setting = new Settings { ActivationFlags = flags }; _container.GetExportedValue<ICacheServicing>().Initialize(setting, _container); }
public void Initialize(Settings settings, CompositionContainer container = null) { Contract.Requires(settings != null); Contract.Ensures(IsInitialized); }