Added little skip for results returning, Ok, Fault and Next properties to UpdateHandlerBase, now instaed of 'return Result.Ok();' you can just type 'return Ok;'

This commit is contained in:
2026-03-06 15:10:41 +04:00
parent 528870f1ba
commit 29c3b8df81
2 changed files with 16 additions and 3 deletions
@@ -21,6 +21,15 @@ namespace Telegrator.Handlers.Components
/// </summary>
public HandlerLifetimeToken LifetimeToken { get; } = new HandlerLifetimeToken();
/// <inheritdoc cref="Result.Ok"/>
public Result Ok => Result.Ok();
/// <inheritdoc cref="Result.Fault"/>
public Result Fault => Result.Fault();
/// <inheritdoc cref="Result.Next"/>
public Result Next => Result.Next();
/// <summary>
/// Executes the handler logic and marks the lifetime as ended after execution.
/// </summary>