private static void CallMatchPrediction() { _marchPredictionService.IsHaveNewCachedPrediction.ContinueWith(@is => { if (@is.IsFaulted || @is.IsCanceled || [email protected]) { return; } if (@is.Result) { var predictionToSend = _marchPredictionService.GetPrediction(); BotService.SendNotifyForUsers(predictionToSend); } }); }
private static void Test() { BotService.SendNotifyForUsers("TestNotify"); }