public void Start() { if (_role.IsIisExpress) { var website = RunnerFactory.CreateForWebSite(_role); _resources.Add(website); website.Start(); } else { var role = RunnerFactory.CreateForWorkerRole(_role, _role.IsolationMode); _resources.Add(role); role.Start(); } }
public void Start() { if (_role.RoleName == "DotNetCore") { var role = RunnerFactory.CreateDotNetCoreRunner(_role); _resources.Add(role); role.Start(); return; } if (_role.RoleName == "DotNetFramework") { var role = RunnerFactory.CreateDotNetFrameworkRunner(_role); _resources.Add(role); role.Start(); return; } if (_role.RoleName == "Npm") { var role = RunnerFactory.CreateNpmRunner(_role); _resources.Add(role); role.Start(); return; } if (_role.IsIisExpress) { var website = RunnerFactory.CreateForWebSite(_role); _resources.Add(website); website.Start(); } else { var role = RunnerFactory.CreateForWorkerRole(_role, _role.IsolationMode); _resources.Add(role); role.Start(); } }