Пример #1
0
 public virtual Task <ScenarioResult> Init(UserManager userManager, INeighRepository repository, MessageTrail trail)
 {
     Users      = userManager;
     Repository = repository;
     Trail      = trail;
     return(Task.FromResult(ScenarioResult.ContinueCurrent));
 }
Пример #2
0
        public override async Task <ScenarioResult> Init(UserManager userManager, INeighRepository repository, MessageTrail trail)
        {
            await base.Init(userManager, repository, trail);

            await PrintMenu();

            return(ScenarioResult.ContinueCurrent);
        }
Пример #3
0
 public UserContext(TelegramBotClient bot, int userID)
 {
     Lock  = new SemaphoreSlim(1, 1);
     Trail = new MessageTrail(bot, userID);
 }
Пример #4
0
        public override async Task <ScenarioResult> Init(UserManager userManager, INeighRepository repository, MessageTrail trail)
        {
            await base.Init(userManager, repository, trail);

            await PrintMenu("Оставьте сообщение для разработчкиов:");

            return(ScenarioResult.ContinueCurrent);
        }