public virtual Task <ScenarioResult> Init(UserManager userManager, INeighRepository repository, MessageTrail trail) { Users = userManager; Repository = repository; Trail = trail; return(Task.FromResult(ScenarioResult.ContinueCurrent)); }
public override async Task <ScenarioResult> Init(UserManager userManager, INeighRepository repository, MessageTrail trail) { await base.Init(userManager, repository, trail); await PrintMenu(); return(ScenarioResult.ContinueCurrent); }
public UserContext(TelegramBotClient bot, int userID) { Lock = new SemaphoreSlim(1, 1); Trail = new MessageTrail(bot, userID); }
public override async Task <ScenarioResult> Init(UserManager userManager, INeighRepository repository, MessageTrail trail) { await base.Init(userManager, repository, trail); await PrintMenu("Оставьте сообщение для разработчкиов:"); return(ScenarioResult.ContinueCurrent); }