29-11-23
This commit is contained in:
parent
1e2083950f
commit
c964b97e55
@ -137,6 +137,7 @@
|
|||||||
<DependentUpon>Settings.settings</DependentUpon>
|
<DependentUpon>Settings.settings</DependentUpon>
|
||||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Services\EmailService.vb" />
|
||||||
<Compile Include="Strings\Email.en.Designer.vb">
|
<Compile Include="Strings\Email.en.Designer.vb">
|
||||||
<DependentUpon>Email.en.resx</DependentUpon>
|
<DependentUpon>Email.en.resx</DependentUpon>
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
|
|||||||
19
EnvelopeGenerator.Common/Services/EmailService.vb
Normal file
19
EnvelopeGenerator.Common/Services/EmailService.vb
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Imports DigitalData.Modules.Base
|
||||||
|
Imports DigitalData.Modules.Logging
|
||||||
|
|
||||||
|
Public Class EmailService
|
||||||
|
Inherits BaseClass
|
||||||
|
|
||||||
|
Public Sub New(pState As State)
|
||||||
|
MyBase.New(pState.LogConfig)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Public Function SendSignedEmail(pReceiverId As Integer, pEnvelopeId As Integer)
|
||||||
|
|
||||||
|
Dim oEnvelope =
|
||||||
|
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
End Class
|
||||||
@ -1,4 +1,5 @@
|
|||||||
using DigitalData.Modules.Logging;
|
using DigitalData.Modules.Logging;
|
||||||
|
using EnvelopeGenerator.Common;
|
||||||
using EnvelopeGenerator.Web.Services;
|
using EnvelopeGenerator.Web.Services;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using static EnvelopeGenerator.Web.Constants;
|
using static EnvelopeGenerator.Web.Constants;
|
||||||
@ -9,6 +10,7 @@ namespace EnvelopeGenerator.Web.Controllers
|
|||||||
{
|
{
|
||||||
internal DatabaseService database;
|
internal DatabaseService database;
|
||||||
internal LogConfig logConfig;
|
internal LogConfig logConfig;
|
||||||
|
internal State state;
|
||||||
public Logger logger;
|
public Logger logger;
|
||||||
|
|
||||||
public BaseController(DatabaseService database, LoggingService logging)
|
public BaseController(DatabaseService database, LoggingService logging)
|
||||||
@ -16,6 +18,7 @@ namespace EnvelopeGenerator.Web.Controllers
|
|||||||
this.database = database;
|
this.database = database;
|
||||||
this.logConfig = logging.LogConfig;
|
this.logConfig = logging.LogConfig;
|
||||||
this.logger = logging.LogConfig.GetLoggerFor(GetType().Name);
|
this.logger = logging.LogConfig.GetLoggerFor(GetType().Name);
|
||||||
|
this.state = GetState();
|
||||||
}
|
}
|
||||||
|
|
||||||
internal ObjectResult ErrorResponse(Exception e)
|
internal ObjectResult ErrorResponse(Exception e)
|
||||||
@ -26,5 +29,15 @@ namespace EnvelopeGenerator.Web.Controllers
|
|||||||
detail: e.Message,
|
detail: e.Message,
|
||||||
type: ErrorType.ServerError.ToString());
|
type: ErrorType.ServerError.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal State GetState()
|
||||||
|
{
|
||||||
|
return new State
|
||||||
|
{
|
||||||
|
Database = database.MSSQL,
|
||||||
|
LogConfig = logConfig,
|
||||||
|
UserId = 2 // TODO
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -61,7 +61,7 @@ namespace EnvelopeGenerator.Web.Services
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private State GetState()
|
public State GetState()
|
||||||
{
|
{
|
||||||
return new State
|
return new State
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user