I have been using Microsoft.Bot.Builder v3.x all this time to develop Bot. I have started using Microsoft.Bot.Builder v4.x to develop Bots, I made use of Microsoft.Bot.Builder.Classic to shift v3.0 bot solution to v4.0 bot solution.
I have come across one issue where I need to use StateClient object found within Microsoft.Bot.Connector v3.11.1 but I cannot find the same in Microsoft.Bot.Connector v4.0.1 which I cannot depricate since I have moved to Microsoft.Bot.Builder v4.x.
I need StateClient as I am moving authentication token(and few more data) from an MVC application to my Bot using StateClient and BotData.
StateClient _stateClient = result.GetStateClient();
BotState _botState = new BotState(_stateClient);
BotData _botData = await _botState.GetUserDataAsync(result.ChannelId,
result.From.Id);
string _token = _botData.GetProperty<string>("AccessToken");