mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 07:30:15 -04:00

Breadcrumb control handles breadcrumb status Layout improvements Added the ability to delete an entry from the group menu
19 lines
608 B
C#
19 lines
608 B
C#
using System.Reflection;
|
|
using MediatR;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using ModernKeePass.Application.Common.Behaviors;
|
|
|
|
namespace ModernKeePass.Application
|
|
{
|
|
public static class DependencyInjection
|
|
{
|
|
public static IServiceCollection AddApplication(this IServiceCollection services)
|
|
{
|
|
var assembly = typeof(DependencyInjection).GetTypeInfo().Assembly;
|
|
services.AddMediatR(assembly);
|
|
services.AddTransient(typeof(IPipelineBehavior<,>), typeof(DirtyStatusBehavior<,>));
|
|
|
|
return services;
|
|
}
|
|
}
|
|
} |