示例#1
0
 public Task ScheduleDelayedPing(IGenericPingSelf <T> target, T t, TimeSpan delay)
 {
     RegisterTimer(o =>
     {
         this.GetLogger().Verbose("***Timer fired for pinging {0}***", target.GetPrimaryKey());
         return(target.Ping(t));
     },
                   null,
                   delay,
                   TimeSpan.FromMilliseconds(-1));
     return(TaskDone.Done);
 }
示例#2
0
 public Task ScheduleDelayedPing(IGenericPingSelf <T> target, T t, TimeSpan delay)
 {
     RegisterTimer(o =>
     {
         this.logger.LogDebug("***Timer fired for pinging {0}***", target.GetPrimaryKey());
         return(target.Ping(t));
     },
                   null,
                   delay,
                   TimeSpan.FromMilliseconds(-1));
     return(Task.CompletedTask);
 }
示例#3
0
 public Task <T> PingOther(IGenericPingSelf <T> target, T t)
 {
     return(target.Ping(t));
 }