コード例 #1
0
 public static void Destruct(this IContextStore store)
 {
     foreach (var dep in store.GetContextInstances())
     {
         dep.Cleaner?.Destruct(dep.Key, dep.Instance);
     }
     store.GetContextInstances().Clear();
 }
コード例 #2
0
 void StoreInstanceInContext(IContextStore contextStore, string key, object instance)
 {
     contextStore[key] = instance;
     contextStore.GetContextInstances().Add(new ContextStoreDependency(key, instance, Resolver.Registrations));
 }
コード例 #3
0
 void StoreInstanceInContext(IContextStore contextStore, string key, object instance)
 {
     contextStore[key] = instance;
     contextStore.GetContextInstances().Add(new ContextStoreDependency(key, instance, Resolver.Registrations));
 }