< Summary

Information
Class: MyNet.Utilities.Authentication.AuthenticatedEventArgs
Assembly: MyNet.Utilities
File(s): https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Utilities/Authentication/AuthenticatedEventArgs.cs
Tag: 323_28699572109
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 22
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

https://raw.githubusercontent.com/sandre58/MyNet/85372080fe102cd9ee155ceab49ae000e7f66103/src/MyNet.Utilities/Authentication/AuthenticatedEventArgs.cs

#LineLine coverage
 1// -----------------------------------------------------------------------
 2// <copyright file="AuthenticatedEventArgs.cs" company="Stéphane ANDRE">
 3// Copyright (c) Stéphane ANDRE. All rights reserved.
 4// </copyright>
 5// -----------------------------------------------------------------------
 6
 7using System;
 8
 9namespace MyNet.Utilities.Authentication;
 10
 11/// <summary>
 12/// Provides data for authentication state change events.
 13/// </summary>
 14/// <param name="isAuthenticated">Indicates whether the new state is authenticated.</param>
 415public sealed class AuthenticatedEventArgs(bool isAuthenticated) : EventArgs
 16{
 17    /// <summary>
 18    /// Gets a value indicating whether the new authentication state is authenticated.
 19    /// </summary>
 20    public bool IsAuthenticated { get; } = isAuthenticated;
 21}
 22

Methods/Properties

.ctor(System.Boolean)