Exemple #1
0
 public T AddOrUpdateContext <T>(ContextFactory <T> addFactory, UpdateContextFactory <T> updateFactory)
     where T : class
 {
     return(ContextCache.AddOrUpdateContext(addFactory, updateFactory));
 }
Exemple #2
0
 public bool TryGetContext <T>(out T context)
     where T : class
 {
     return(ContextCache.TryGetContext(out context));
 }
Exemple #3
0
 public T GetOrAddContext <T>(ContextFactory <T> contextFactory)
     where T : class
 {
     return(ContextCache.GetOrAddContext(contextFactory));
 }
Exemple #4
0
 public bool HasContext(Type contextType)
 {
     return(ContextCache.HasContext(contextType));
 }