示例#1
0
 /// <summary>
 /// Extension method for SignOut using the <see cref="AuthenticationOptions.DefaultSignOutScheme"/>.
 /// </summary>
 /// <param name="context">The <see cref="ProtoContext"/> context.</param>
 /// <param name="properties">The <see cref="AuthenticationProperties"/> properties.</param>
 /// <returns>The task.</returns>
 public static Task SignOutAsync(this ProtoContext context, AuthenticationProperties properties) => context.SignOutAsync(scheme: null, properties: properties);
示例#2
0
 /// <summary>
 /// Extension method for SignOut.
 /// </summary>
 /// <param name="context">The <see cref="ProtoContext"/> context.</param>
 /// <param name="scheme">The name of the authentication scheme.</param>
 /// <returns>The task.</returns>
 public static Task SignOutAsync(this ProtoContext context, string scheme) => context.SignOutAsync(scheme, properties: null);
示例#3
0
 /// <summary>
 /// Extension method for SignOut using the <see cref="AuthenticationOptions.DefaultSignOutScheme"/>.
 /// </summary>
 /// <param name="context">The <see cref="ProtoContext"/> context.</param>
 /// <returns>The task.</returns>
 public static Task SignOutAsync(this ProtoContext context) => context.SignOutAsync(scheme: null, properties: null);