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