示例#1
0
 public static AspectF Retry(this AspectF aspects, int retryDuration,
                             int retryCount, Action <Exception> errorHandler)
 {
     return(Retry(aspects, retryDuration, retryCount, errorHandler, Let.Logger()));
 }
示例#2
0
 public static AspectF Retry(this AspectF aspects, int retryDuration,
                             int retryCount, Action <Exception> errorHandler, Action <IEnumerable <Exception> > retryFailed)
 {
     return(Retry(aspects, retryDuration, retryCount, errorHandler, retryFailed, Let.Logger()));
 }
示例#3
0
 public static AspectF CacheRetry <TReturnType>(this AspectF aspect,
                                                string key)
 {
     return(CacheRetry <TReturnType>(aspect, Let.Cache(), Let.Logger(), key));
 }
示例#4
0
 public static AspectF Retry(this AspectF aspects, int retryDuration)
 {
     return(Retry(aspects, retryDuration, Let.Logger()));
 }
示例#5
0
 public static AspectF Retry(this AspectF aspects, Action <IEnumerable <Exception> > failHandler)
 {
     return(Retry(aspects, failHandler, Let.Logger()));
 }
示例#6
0
 public static AspectF CacheList <TItemType, TListType>(this AspectF aspect,
                                                        string listCacheKey, Func <TItemType, string> getItemKey)
     where TListType : IList <TItemType>, new()
 {
     return(CacheList <TItemType, TListType>(aspect, Let.Cache(), listCacheKey, getItemKey));
 }
示例#7
0
 public static AspectF TrapLogThrow(this AspectF aspect)
 {
     return(TrapLogThrow(aspect, Let.Logger()));
 }
示例#8
0
 public static AspectF HowLong(this AspectF aspect,
                               string startMessage, string endMessage)
 {
     return(HowLong(aspect, Let.Logger(), startMessage, endMessage));
 }
示例#9
0
 public static AspectF Log(this AspectF aspect,
                           string beforeMessage, string afterMessage)
 {
     return(Log(aspect, Let.Logger(), beforeMessage, afterMessage));
 }
示例#10
0
 public static AspectF Retry(this AspectF aspects)
 {
     return(Retry(aspects, Let.Logger()));
 }
示例#11
0
 public static AspectF Log(this AspectF aspect,
                           string logMessage, params object[] arg)
 {
     return(Log(aspect, Let.Logger(), logMessage, arg));
 }