Beispiel #1
0
 public static ExpiringLogicDecoration HasExpirable(this ILogic decorated)
 {
     Condition.Requires(decorated).IsNotNull();
     return(new ExpiringLogicDecoration(decorated, NaturalFalseExpirable.New()));
 }
Beispiel #2
0
 public static ExpiringValueOfDecoration <T> HasExpirable <T>(this IValueOf <T> decorated)
 {
     Condition.Requires(decorated).IsNotNull();
     return(new ExpiringValueOfDecoration <T>(decorated, NaturalFalseExpirable.New()));
 }