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); }
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); }
public Task <T> PingOther(IGenericPingSelf <T> target, T t) { return(target.Ping(t)); }