mirror of
https://github.com/bitwarden/server
synced 2025-12-26 05:03:18 +00:00
chore: update LastActivityDate on installation token refresh (#5081)
This commit is contained in:
19
src/Core/Platform/PlatformServiceCollectionExtensions.cs
Normal file
19
src/Core/Platform/PlatformServiceCollectionExtensions.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Bit.Core.Platform.Installations;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Bit.Core.Platform;
|
||||
|
||||
public static class PlatformServiceCollectionExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Extend DI to include commands and queries exported from the Platform
|
||||
/// domain.
|
||||
/// </summary>
|
||||
public static IServiceCollection AddPlatformServices(this IServiceCollection services)
|
||||
{
|
||||
services.AddScoped<IGetInstallationQuery, GetInstallationQuery>();
|
||||
services.AddScoped<IUpdateInstallationCommand, UpdateInstallationCommand>();
|
||||
|
||||
return services;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user