public GoogleAdapterWithErrorHandler(ILogger <GoogleAdapter> logger, GoogleAdapterOptions adapterOptions) : base(adapterOptions, logger) { OnTurnError = async(turnContext, exception) => { // Log any leaked exception from the application. logger.LogError($"Exception caught : {exception.Message}"); // Send a catch-all apology to the user. await turnContext.SendActivityAsync("Sorry, it looks like something went wrong."); }; }
public GoogleHttpAdapter(GoogleAdapterOptions options = null, ILogger logger = null) : base(options, logger) { }