Logout.cs from platformplatform/PlatformPlatform
// Source: https://github.com/platformplatform/PlatformPlatform | License: MIT | Copyright 2023 PlatformPlatform
// Provided via justclaw.it.com; keep this notice with the code.
using Account.Features.Authentication.Domain;
using JetBrains.Annotations;
using SharedKernel.Authentication.TokenGeneration;
using SharedKernel.Cqrs;
using SharedKernel.ExecutionContext;
using SharedKernel.Telemetry;
namespace Account.Features.Authentication.Commands;
[PublicAPI]
public sealed record LogoutCommand : ICommand, IRequest<Result>;
public sealed class LogoutHandler(
ISessionRepository sessionRepository,
AuthenticationTokenService authenticationTokenService,
IExecutionContext executionContext,
TimeProvider timeProvider,
ITelemetryEventsCollector events
) : IRequestHandler<LogoutCo
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key