예제 #1
0
 public static LoggingStoreDecoration GetLogger(this IStore decorated)
 {
     return(decorated.As <LoggingStoreDecoration>(true));
 }
예제 #2
0
 /// <summary>
 /// gets the factory layer
 /// </summary>
 /// <param name="decorated"></param>
 /// <returns></returns>
 public static FactoryDecoration GetFactory(this IStore decorated)
 {
     return(decorated.As <FactoryDecoration>(true));
 }
예제 #3
0
 /// <summary>
 /// gets the evicting layer
 /// </summary>
 /// <param name="decorated"></param>
 /// <returns></returns>
 public static HasIdDecoration GetHasIdDecoration(this IStore decorated)
 {
     return(decorated.As <HasIdDecoration>(true));
 }
예제 #4
0
 /// <summary>
 /// gets the interception layer
 /// </summary>
 /// <param name="decorated"></param>
 /// <returns></returns>
 public static InterceptingStoreDecoration GetIntercept(this IStore decorated)
 {
     return(decorated.As <InterceptingStoreDecoration>(true));
 }
예제 #5
0
 /// <summary>
 /// gets the evicting layer
 /// </summary>
 /// <param name="decorated"></param>
 /// <returns></returns>
 public static EvictingDecoration GetEvicting(this IStore decorated)
 {
     return(decorated.As <EvictingDecoration>(true));
 }
예제 #6
0
 /// <summary>
 /// gets the first (exact type) PollDecoration
 /// </summary>
 /// <param name="decorated"></param>
 /// <returns></returns>
 public static PollingStoreDecoration GetPoll(this IStore decorated)
 {
     return(decorated.As <PollingStoreDecoration>(true));
 }
예제 #7
0
 /// <summary>
 /// gets the caching layer
 /// </summary>
 /// <param name="decorated"></param>
 /// <returns></returns>
 public static ICachingStore GetCache(this IStore decorated)
 {
     return(decorated.As <ICachingStore>(false));
 }