private MAuthAuthenticator SetupMAuthAuthenticator(MAuthWebApiOptions opt) { var loggerFactory = options.LoggerFactory ?? NullLoggerFactory.Instance; var logger = loggerFactory.CreateLogger(typeof(MAuthAuthenticatingHandler)); return(new MAuthAuthenticator(options, logger)); }
/// <summary> /// Initializes a new instance of the <see cref="MAuthAuthenticatingHandler"/> class with the provided /// <see cref="MAuthOptionsBase"/> and an inner <see cref="HttpMessageHandler"/>. /// </summary> /// <param name="options">The options for this message handler.</param> /// <param name="innerHandler"> /// The inner handler which is responsible for processing the HTTP response messages. /// </param> public MAuthAuthenticatingHandler(MAuthWebApiOptions options, HttpMessageHandler innerHandler) : base(innerHandler) { this.options = options; authenticator = new MAuthAuthenticator(options); }
/// <summary> /// Initializes a new insance of the <see cref="MAuthAuthenticatingHandler"/> class with the provided /// <see cref="MAuthWebApiOptions"/>. /// </summary> /// <param name="options">The options for this message handler.</param> public MAuthAuthenticatingHandler(MAuthWebApiOptions options) { this.options = options; authenticator = new MAuthAuthenticator(options); }
/// <summary> /// Initializes a new instance of the <see cref="MAuthAuthenticatingHandler"/> class with the provided /// <see cref="MAuthWebApiOptions"/>. /// </summary> /// <param name="options">The options for this message handler.</param> public MAuthAuthenticatingHandler(MAuthWebApiOptions options) { this.options = options; this.authenticator = this.SetupMAuthAuthenticator(options); }