Beispiel #1
0
 public void Initialize(Settings settings,CompositionContainer container = null)
 {
     if (container!=null)
        _container.SetContainer(container);
     _settings.Settings = settings;
     Initialize();
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 private void Initialize(params Enum[] flags)
 {
     var setting = new Settings { ActivationFlags = flags };
     _container.GetExportedValue<ICacheServicing>().Initialize(setting, _container);
 }
Beispiel #4
0
 public void Initialize(Settings settings, CompositionContainer container = null)
 {
     Contract.Requires(settings != null);
     Contract.Ensures(IsInitialized);
 }