arrange folder structure of notification

This commit is contained in:
tekh 2025-09-03 16:57:25 +02:00
parent 763f022a5e
commit bb85437cc4
5 changed files with 10 additions and 15 deletions

View File

@ -1,5 +1,5 @@
using DigitalData.Core.Client;
using EnvelopeGenerator.Application.Common.Notifications;
using EnvelopeGenerator.Application.Common.DocSignedNotification;
using EnvelopeGenerator.Application.Configurations;
using EnvelopeGenerator.Application.EnvelopeReceivers.Commands;
using EnvelopeGenerator.Application.Interfaces.Services;
@ -59,8 +59,6 @@ public static class DependencyInjection
services.AddMediatR(cfg =>
{
cfg.RegisterServicesFromAssembly(Assembly.GetExecutingAssembly());
cfg.RegisterServicesFromAssembly(typeof(CreateEnvelopeReceiverCommandHandler).Assembly);
cfg.RegisterServicesFromAssembly(typeof(DocSignedNotification).Assembly);
});
return services;

View File

@ -2,7 +2,7 @@
using MediatR;
using System.Dynamic;
namespace EnvelopeGenerator.Application.Common.Notifications;
namespace EnvelopeGenerator.Application.Notifications.DocSigned;
/// <summary>
///

View File

@ -3,12 +3,12 @@ using EnvelopeGenerator.Domain.Constants;
using MediatR;
using Newtonsoft.Json;
namespace EnvelopeGenerator.Application.Common.Notifications.Handlers;
namespace EnvelopeGenerator.Application.Notifications.DocSigned.Handlers;
/// <summary>
///
/// </summary>
public class DocSignedNotificationAnnotationHandler : INotificationHandler<DocSignedNotification>
public class AnnotationHandler : INotificationHandler<DocSignedNotification>
{
private readonly ISender _sender;
@ -16,7 +16,7 @@ public class DocSignedNotificationAnnotationHandler : INotificationHandler<DocSi
///
/// </summary>
/// <param name="sender"></param>
public DocSignedNotificationAnnotationHandler(ISender sender)
public AnnotationHandler(ISender sender)
{
_sender = sender;
}

View File

@ -1,15 +1,14 @@
using EnvelopeGenerator.Application.DocStatus.Commands;
using EnvelopeGenerator.Application.Histories.Commands;
using EnvelopeGenerator.Application.Histories.Commands;
using EnvelopeGenerator.Domain.Constants;
using MediatR;
using Newtonsoft.Json;
namespace EnvelopeGenerator.Application.Common.Notifications.Handlers;
namespace EnvelopeGenerator.Application.Notifications.DocSigned.Handlers;
/// <summary>
///
/// </summary>
public class DocSignedNotificationHistoryHandler : INotificationHandler<DocSignedNotification>
public class HistoryHandler : INotificationHandler<DocSignedNotification>
{
private readonly ISender _sender;
@ -17,7 +16,7 @@ public class DocSignedNotificationHistoryHandler : INotificationHandler<DocSigne
///
/// </summary>
/// <param name="sender"></param>
public DocSignedNotificationHistoryHandler(ISender sender)
public HistoryHandler(ISender sender)
{
_sender = sender;
}

View File

@ -11,9 +11,7 @@ using EnvelopeGenerator.Web.Extensions;
using MediatR;
using System.Dynamic;
using EnvelopeGenerator.Application.EnvelopeReceivers.Queries;
using EnvelopeGenerator.Application.DocStatus.Commands;
using Newtonsoft.Json;
using EnvelopeGenerator.Application.Common.Notifications;
using EnvelopeGenerator.Application.Notifications.DocSigned;
using DigitalData.Core.Exceptions;
namespace EnvelopeGenerator.Web.Controllers;