26 lines
908 B
C#
26 lines
908 B
C#
using HRD.WebApi;
|
|
using HRD.WebApi.DAL.Middleware;
|
|
|
|
namespace StaffDBServer.SharedExtensions
|
|
{
|
|
public static class WebApiMiddlewareOptionsHelper
|
|
{
|
|
public static WebApiMiddlewareOptions GetWebApiMiddlewareOptions()
|
|
{
|
|
WebApiMiddlewareOptions options = new WebApiMiddlewareOptions
|
|
{
|
|
AssemblyVersion = WebApiConfig.AssemblyVersion,
|
|
AssemblyName = WebApiConfig.AssemblyName,
|
|
ClientVersion = WebApiConfig.ClientVersion,
|
|
|
|
Connectionstring = WebApiConfig.Connectionstring,
|
|
|
|
NlogConnectionstring = WebApiConfig.NlogConnectionstring,
|
|
NlogDBLogLevel = WebApiConfig.NlogDBLogLevel,
|
|
NlogFileLogLevel = WebApiConfig.NlogFileLogLevel,
|
|
NlogLogDirectory = WebApiConfig.NlogLogDirectory
|
|
};
|
|
return options;
|
|
}
|
|
}
|
|
} |