Пример #1
0
            public async Task StartEvent(CurrencyEvent e, int arg = -1)
            {
                switch (e)
                {
                case CurrencyEvent.Reaction:
                    await ReactionEvent(Context, arg).ConfigureAwait(false);

                    break;

                case CurrencyEvent.SneakyGameStatus:
                    await SneakyGameStatusEvent(Context, arg).ConfigureAwait(false);

                    break;
                }
            }
Пример #2
0
            public Task StartEvent(CurrencyEvent e, int arg = -1)
            {
                _ = Task.Run(async() => {
                    switch (e)
                    {
                    case CurrencyEvent.Reaction:
                        await ReactionEvent(arg).ConfigureAwait(false);
                        break;

                    case CurrencyEvent.SneakyGameStatus:
                        await SneakyGameStatusEvent(arg).ConfigureAwait(false);
                        break;
                    }
                });
                return(Task.CompletedTask);
            }