public RaciClient(string epId, string driverName) : this(epId) { driverName = driverName?.Trim() ?? ""; if (Endpoint == null) { Logger.LogInformation($"No endpoint with identifier '{epId}' found, skipping driver setup..."); } else if (String.IsNullOrWhiteSpace(driverName)) { Logger.LogInformation($"Empty driver, skipping driver setup..."); } else if (!Drivers.AnyWithName(driverName)) { Logger.LogInformation($"No driver named {driverName} found in the service registry, skipping driver setup..."); } else { Logger.LogInformation($"Driver setup for {driverName}..."); Driver = Drivers.WithName(driverName); if (Driver == null) { throw new ApplicationException($"Unable to get driver object for registered driver '{driverName}'"); } } }