Пример #1
0
        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);
                }
            });
        }
Пример #2
0
 private static void Test()
 {
     BotService.SendNotifyForUsers("TestNotify");
 }