public LandmarkApiClient(HttpClient policyHttpClient, LandmarkApiConfig apiConfig, IAuditEventRepository auditEventRepository) { _policyHttpClient = policyHttpClient; _instanceConfiguration = apiConfig.DefaultInstance; _auditEventRepository = auditEventRepository; _serviceUri = new Uri(_instanceConfiguration.BaseUri, ServiceRestEndpointAddress); }
/// <summary> /// Sets values for the optional fields if not already set. /// </summary> /// <param name="other">Primary instance configuration</param> public void UpdateOptionalValues(LandmarkInstanceConfig other) { if (string.IsNullOrWhiteSpace(OrganizationCode)) { OrganizationCode = other.OrganizationCode; } if (string.IsNullOrWhiteSpace(PositionCode)) { PositionCode = other.PositionCode; } if (string.IsNullOrWhiteSpace(Timezone)) { Timezone = other.Timezone; } ProbePort ??= other.ProbePort; }