public static LoggingStoreDecoration GetLogger(this IStore decorated) { return(decorated.As <LoggingStoreDecoration>(true)); }
/// <summary> /// gets the factory layer /// </summary> /// <param name="decorated"></param> /// <returns></returns> public static FactoryDecoration GetFactory(this IStore decorated) { return(decorated.As <FactoryDecoration>(true)); }
/// <summary> /// gets the evicting layer /// </summary> /// <param name="decorated"></param> /// <returns></returns> public static HasIdDecoration GetHasIdDecoration(this IStore decorated) { return(decorated.As <HasIdDecoration>(true)); }
/// <summary> /// gets the interception layer /// </summary> /// <param name="decorated"></param> /// <returns></returns> public static InterceptingStoreDecoration GetIntercept(this IStore decorated) { return(decorated.As <InterceptingStoreDecoration>(true)); }
/// <summary> /// gets the evicting layer /// </summary> /// <param name="decorated"></param> /// <returns></returns> public static EvictingDecoration GetEvicting(this IStore decorated) { return(decorated.As <EvictingDecoration>(true)); }
/// <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)); }
/// <summary> /// gets the caching layer /// </summary> /// <param name="decorated"></param> /// <returns></returns> public static ICachingStore GetCache(this IStore decorated) { return(decorated.As <ICachingStore>(false)); }