public override void ApplyToWindowsServiceComponent(WindowsServiceComponent windowsServiceComponent)
        {
            Logger.Instance.Log(LogLevel.Info, "\nDeploying component ({0}):\n", windowsServiceComponent.Id);

            string deploymentPackageSourcePath = Path.Combine(PathToDeploymentPackage, windowsServiceComponent.DeploymentPackageDirectoryName);

            if (Directory.Exists(deploymentPackageSourcePath))
            {
                windowsServiceComponent.StopWindowsService();
            }

            ApplyToCodeTreeComponent(windowsServiceComponent);

            if (Directory.Exists(deploymentPackageSourcePath))
            {
                windowsServiceComponent.StartWindowsService();
            }
        }
示例#2
0
 public override void ApplyToWindowsServiceComponent(WindowsServiceComponent windowsServiceComponent)
 {
     throw new NotImplementedException();
 }
示例#3
0
 public abstract void ApplyToWindowsServiceComponent(WindowsServiceComponent windowsServiceComponent);