Refactor DI for Envelope services and add new executor
Updated DIExtensions to register IEnvelopeExecutor as a singleton and added IEnvelopeReceiverExecutor as a new singleton service. Introduced IEnvelopeReceiverExecutor interface and implemented it in the new EnvelopeReceiverExecutor class for future envelope processing functionality.
This commit is contained in:
parent
40dc0ecda3
commit
749366fff5
@ -0,0 +1,8 @@
|
||||
namespace EnvelopeGenerator.Application.Contracts.SQLExecutor;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public interface IEnvelopeReceiverExecutor
|
||||
{
|
||||
}
|
||||
@ -82,7 +82,8 @@ public static class DIExtensions
|
||||
SetDapperTypeMap<DocumentReceiverElement>();
|
||||
SetDapperTypeMap<DocumentStatus>();
|
||||
|
||||
services.AddScoped<IEnvelopeExecutor, EnvelopeExecutor>();
|
||||
services.AddSingleton<IEnvelopeExecutor, EnvelopeExecutor>();
|
||||
services.AddSingleton<IEnvelopeReceiverExecutor, EnvelopeReceiverExecutor>();
|
||||
|
||||
if (sqlExecutorConfiguration is not null || sqlExecutorConfigureOptions is not null)
|
||||
services.AddSQLExecutor(sqlExecutorConfiguration, sqlExecutorConfigureOptions);
|
||||
|
||||
@ -0,0 +1,7 @@
|
||||
using EnvelopeGenerator.Application.Contracts.SQLExecutor;
|
||||
|
||||
namespace EnvelopeGenerator.Infrastructure.Executor;
|
||||
|
||||
public class EnvelopeReceiverExecutor: IEnvelopeReceiverExecutor
|
||||
{
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user