/// <inheritdoc /> public void Start() { _logger?.Log(LogLevel.Info, "Starting wcf service {0} with version {1}", _endpointAddress, (_endpointVersion ?? new ServiceVersionAttribute()).ServerVersion); _service.Open(); if (_endpointVersion != null) { _collector.AddEndpoint(_hostConfig.Endpoint, _endpointVersion); _collector.AddService(_type, _hostConfig.BindingType, _endpointAddress, _endpointVersion, _hostConfig.RequiresAuthentification); } }
/// <inheritdoc /> public void Start() { _logger?.Log(LogLevel.Info, "Starting wcf service {0} with version {1}", _endpointAddress, _endpointVersion?.Version ?? "1.0.0.0"); _service.Open(); if (_endpointVersion != null) { _collector.AddEndpoint(_endpointAddress, new Endpoint { Service = _contract.Name, Path = _hostConfig.Endpoint, Address = _endpointAddress, Binding = _hostConfig.BindingType, Version = _endpointVersion.Version, RequiresAuthentication = _hostConfig.RequiresAuthentification }); } }