Пример #1
0
 static public CompileTimeCache <T, P1, P2, P3, P4> NewCompileTimeCache <T, P1, P2, P3, P4>(this CacheManager item, string i, Husker <T> h, Operation <T, P1, P2, P3, P4> o)
     where P1 : Identifiable
     where P2 : Identifiable
     where P3 : Identifiable
     where P4 : Identifiable
 {
     return(item.AddAndGetCache(new CompileTimeCache <T, P1, P2, P3, P4>(i, h, o)));
 }
Пример #2
0
 static public CompileTimeCache <T, P> NewCompileTimeCache <T, P>(this CacheManager item, string i, Husker <T> h, Operation <T, P> o)
     where P : Identifiable
 {
     return(item.AddAndGetCache(new CompileTimeCache <T, P>(i, h, o)));
 }
Пример #3
0
 public CompileTimeCacheBase(string i, Husker <T> h) : base(i)
 {
     husker = h;
 }
Пример #4
0
 static public CompileTimeCache <T> NewCompileTimeCache <T>(this CacheManager item, string i, Husker <T> h, Operation <T> o)
 {
     return(item.AddAndGetCache(new CompileTimeCache <T>(i, h, o)));
 }
Пример #5
0
 public CompileTimeCache(string i, Husker <T> h, Operation <T, P1, P2, P3, P4> o) : base(i, h, p => o(p.item1, p.item2, p.item3, p.item4))
 {
 }