diff --git a/Vrh.Web.Reporting/Global.asax.cs b/Vrh.Web.Reporting/Global.asax.cs
index 65ddcaa..a974021 100644
--- a/Vrh.Web.Reporting/Global.asax.cs
+++ b/Vrh.Web.Reporting/Global.asax.cs
@@ -30,7 +30,7 @@ namespace Vrh.Web.Reporting
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
- WebServerHostedServiceStarter.Init(typeof(Vrh.iScheduler.WAHostedMonitorHangfire));
+ WebServerHostedServiceStarter.Start(typeof(Vrh.iScheduler.WAHostedMonitorHangfire));
//IISHostedServiceStarter.Init(Vrh.iScheduler.WAHostedMonitorHangfire.Start, Vrh.iScheduler.WAHostedMonitorHangfire.Stop);
//IISHostedServiceStarter.Init(Vrh.iScheduler.WAHostedMonitor.Start, Vrh.iScheduler.WAHostedMonitor.Stop);
diff --git a/Vrh.Web.Reporting/WebServerHostedServiceStarter.cs b/Vrh.Web.Reporting/WebServerHostedServiceStarter.cs
index 97558eb..d4cdabb 100644
--- a/Vrh.Web.Reporting/WebServerHostedServiceStarter.cs
+++ b/Vrh.Web.Reporting/WebServerHostedServiceStarter.cs
@@ -39,9 +39,9 @@ namespace Vrh.Web.WebServerHostedServiceStarterNS
/// IWebServerHostedServiceStarter interfészt meg kell valósítsa, bár ezt nem ellenőrzi, csak azt,
/// hogy az ezt jelentő 'public static void Start();' és 'public static void Stop();' metódusok megvannak-e.
///
- public static void Init(Type tt)
+ public static void Start(Type tt)
{
- var le = new DCLogEntry(LogLevel.Information, $"{typeof(WebServerHostedServiceStarter).FullName}.{nameof(Init)}");
+ var le = new DCLogEntry(LogLevel.Information, $"{typeof(WebServerHostedServiceStarter).FullName}.{nameof(Start)}");
try
{
//if (!tt.GetInterfaces().Contains(typeof(IWebServerHostedServiceStarter))) throw new InterfaceErrorApplicationException(tt.FullName);
@@ -66,9 +66,9 @@ namespace Vrh.Web.WebServerHostedServiceStarterNS
///
/// az indító metódus
/// a leállító metódus
- public static void Init(List ttList)
+ public static void Start(List ttList)
{
- var le = new DCLogEntry(LogLevel.Information, $"{typeof(WebServerHostedServiceStarter).FullName}.{nameof(Init)}");
+ var le = new DCLogEntry(LogLevel.Information, $"{typeof(WebServerHostedServiceStarter).FullName}.{nameof(Start)}");
try
{
//if (!tt.GetInterfaces().Contains(typeof(IInterface))) throw new Exception ($"{tt.FullName} does not implement {nameof(IInterface)}!");
@@ -92,19 +92,14 @@ namespace Vrh.Web.WebServerHostedServiceStarterNS
finally { le.Write(); }
}
- private class InterfaceErrorApplicationException : ApplicationException
- {
- public InterfaceErrorApplicationException(string typename, string methodname) : base($"Class '{typename}' does not implement 'public static void {methodname}()' action!") { }
- public InterfaceErrorApplicationException(string typename) : base($"Class '{typename}' does not implement '{nameof(IWebServerHostedServiceStarter)}' interface!") { }
- }
///
/// Egy hosted service elindítását, paraméterezését, konfigurálását és a külső iniciátor meghívást végzi.
///
/// az indító metódus
/// a leállító metódus
- public static void Init(Action externalinitializerstartmethod, Action externalinitializerstopmethod)
+ public static void Start(Action externalinitializerstartmethod, Action externalinitializerstopmethod)
{
- var le = new DCLogEntry(LogLevel.Information, $"{typeof(WebServerHostedServiceStarter).FullName}.{nameof(Init)}");
+ var le = new DCLogEntry(LogLevel.Information, $"{typeof(WebServerHostedServiceStarter).FullName}.{nameof(Start)}");
try
{
_SetupAutoStart(le: le);
@@ -118,9 +113,9 @@ namespace Vrh.Web.WebServerHostedServiceStarterNS
///
/// Több hosted service elindítását, paraméterezését, konfigurálását és a külső iniciátorok meghívást végzi.
///
- public static void Init(List> externalinitializerList)
+ public static void Start(List> externalinitializerList)
{
- var le = new DCLogEntry(LogLevel.Information, $"{typeof(WebServerHostedServiceStarter).FullName}.{nameof(Init)}");
+ var le = new DCLogEntry(LogLevel.Information, $"{typeof(WebServerHostedServiceStarter).FullName}.{nameof(Start)}");
try
{
_SetupAutoStart(le: le);
@@ -167,6 +162,11 @@ namespace Vrh.Web.WebServerHostedServiceStarterNS
#region private members
+ private class InterfaceErrorApplicationException : ApplicationException
+ {
+ public InterfaceErrorApplicationException(string typename, string methodname) : base($"Class '{typename}' does not implement 'public static void {methodname}()' action!") { }
+ public InterfaceErrorApplicationException(string typename) : base($"Class '{typename}' does not implement '{nameof(IWebServerHostedServiceStarter)}' interface!") { }
+ }
void IRegisteredObject.Stop(bool immediate) { Stop(); }
private void _RegisterExternalInitializer(Action externalinitializerstartmethod, Action externalinitializerstopmethod, DCLogEntry le)
{
--
libgit2 0.21.2