fca978de07
Sweep of 203 source files resolving CommentChecker findings: add <summary>/<param>/<returns>/<inheritdoc> where missing, and remove resolved task/issue tracking markers (Tests-NNN, Worker-NNN, Server-NNN, Task N) from code comments. Comment/doc-only — no logic changes. Server+Tests build clean under TreatWarningsAsErrors.
23 lines
864 B
C#
23 lines
864 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>
|
|
/// <returns>A successful <see cref="DashboardSessionAdminResult"/>.</returns>
|
|
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>
|
|
/// <returns>A failed <see cref="DashboardSessionAdminResult"/>.</returns>
|
|
public static DashboardSessionAdminResult Fail(string message)
|
|
{
|
|
return new DashboardSessionAdminResult(false, message);
|
|
}
|
|
}
|