615b487a77
Adds missing <summary>/<param> XML docs across 99 server, worker, and test files so CommentChecker reports zero issues (TreatWarningsAsErrors needs the analyzer clean). Bundles in WIP dashboard work: NavSection extraction, MainLayout/site.css/js styling alignment, and DashboardOptions/Auth tweaks.
21 lines
702 B
C#
21 lines
702 B
C#
namespace ZB.MOM.WW.MxGateway.Server.Dashboard;
|
|
|
|
public sealed record DashboardSessionAdminResult(
|
|
bool Succeeded,
|
|
string Message)
|
|
{
|
|
/// <summary>Creates a successful result with the given message.</summary>
|
|
/// <param name="message">The result message.</param>
|
|
public static DashboardSessionAdminResult Success(string message)
|
|
{
|
|
return new DashboardSessionAdminResult(true, message);
|
|
}
|
|
|
|
/// <summary>Creates a failed result with the given message.</summary>
|
|
/// <param name="message">The result message.</param>
|
|
public static DashboardSessionAdminResult Fail(string message)
|
|
{
|
|
return new DashboardSessionAdminResult(false, message);
|
|
}
|
|
}
|