示例#1
0
 public static ITarget LoadTarget(TargetsModel target, string name)
 {
     Check(target);
     return(new Target()
     {
         Name = target.Name ?? name,
         Description = target.Description,
         OccurEvery = TimeSpan.FromMinutes(target.RepeatAfterAmountMinutes ?? 1)
     });
 }
示例#2
0
 private static void Check(TargetsModel model)
 {
     throw new NotImplementedException();
 }