private void DoWork() { var startupResult = new ServiceInitialize().OnStartTasks(); if (startupResult) { if (!string.IsNullOrEmpty(DtoGobalSettings.RemoteApiPort)) { _remoteServer = WebApp.Start <Startup>("http://*:" + DtoGobalSettings.RemoteApiPort); } else { Logger.Info("Remote API Calls To This Device Have Been Disabled. Port Is Not Defined."); } if (!string.IsNullOrEmpty(DtoGobalSettings.LocalApiPort)) { _localServer = WebApp.Start <Toec_LocalApi.Startup>("http://localhost:" + DtoGobalSettings.LocalApiPort); } else { Logger.Info("Local API Calls To This Device Have Been Disabled. Port Is Not Defined."); } new ServiceTriggerAction().Startup(); } }
//public LoginController(ServiceInitialize service, UserManager<IdentityUser> userManager, SignInManager<IdentityUser> signInManager) public LoginController(ServiceInitialize service) { _service = service; //_userManager = userManager; //_signInManager = signInManager; }
public LoginService(ServiceInitialize service) { _service = service; }