using Microsoft.AspNet.Authentication; using Microsoft.AspNet.Http; using System; namespace OAuth.AspNet.AuthServer { /// /// Base class for OAuth server endpoint contexts /// public class BaseOAuthEndpointContext : BaseContext { #region Constructors /// /// Creates a new instance of . /// /// The to use for this endpoint context. /// The to use for this endpoint context. public BaseOAuthEndpointContext(HttpContext context, OAuthAuthorizationServerOptions options) : base(context) { if (options == null) throw new ArgumentNullException(nameof(options)); Options = options; } #endregion #region Public Members /// /// Gets the OAuth server options. /// public OAuthAuthorizationServerOptions Options { get; } #endregion } }