Versatile OpenID Connect stack for ASP.NET Core and Microsoft.Owin (compatible with ASP.NET 4.6.1)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
902 B

using System;
using JetBrains.Annotations;
namespace OpenIddict.Server
{
/// <summary>
/// Represents an OpenIddict server event.
/// </summary>
/// <typeparam name="TContext">The type of the context instance associated with the event.</typeparam>
public class OpenIddictServerEvent<TContext> : IOpenIddictServerEvent where TContext : class
{
/// <summary>
/// Creates a new instance of <see cref="OpenIddictServerEvent{TContext}"/>.
/// </summary>
/// <param name="context">The context instance associated with the event.</param>
public OpenIddictServerEvent([NotNull] TContext context)
=> Context = context ?? throw new ArgumentNullException(nameof(context));
/// <summary>
/// Gets the context instance associated with the event.
/// </summary>
public TContext Context { get; }
}
}