public async Task StartAsync(IDialogContext context) { switch (state) { case State.INIT: if (StateHelper.IsLoggedIn(context)) { await ViewAccountDialog(context, null); } else { await NotLoginDialog(context, null); } break; case State.INPUT_HANDLER: context.Wait(InputHandler); break; } }