in src/Microsoft.Azure.SignalR.Management/Configuration/ServiceManagerOptions.cs [84:103]
internal void ValidateOptions()
{
if ((ServiceEndpoints == null || ServiceEndpoints.Length == 0) && string.IsNullOrWhiteSpace(ConnectionString))
{
throw new InvalidOperationException($"{nameof(ServiceEndpoints)} is empty. {nameof(ConnectionString)} is null, empty, or consists only of white-space.");
}
// forbid multiple endpoints in transient mode.
if (ServiceTransportType == ServiceTransportType.Transient)
{
var count = ConnectionString == null ? 0 : 1;
if (ServiceEndpoints != null)
{
count += ServiceEndpoints.Length;
}
if (count > 1)
{
throw new NotImplementedException($"Multiple service endpoints are set via {ConnectionString} or {ServiceEndpoints}, but multiple service endpoints in transient mode are not implemented yet.");
}
}
}