/// <summary> /// Initializes a new instance of the <see cref="DataLogWindowsService"/> class. /// </summary> public SolutionTestWindowsService() : base("hpstbds", "HP Solution Test Bench Data Service") { Description = "HP Solution Test Bench Data Service"; GlobalSettings.IsDistributedSystem = false; _lock = new WcfHost<ILockService>(new LockService(), LockServiceEndpoint.MessageTransferType, LockServiceEndpoint.BuildUri("localhost")); }
/// <summary> /// Starts this service instance. /// </summary> /// <param name="args">The <see cref="CommandLineArguments" /> provided to the start command.</param> protected override void StartService(CommandLineArguments args) { TraceFactory.Logger.Debug("Lock Service endpoint - Opening"); _lockService = new WcfHost <ILockService>(new LockService(), LockServiceEndpoint.MessageTransferType, LockServiceEndpoint.BuildUri("localhost")); _lockService.Open(); TraceFactory.Logger.Debug("Lock Service endpoint - Opened"); }