Method GetIdentityServiceOrDefault<T>(IRouteContext, IExchange?, string?)

Assembly: redb.Identity.Core.dll

Same as but returns null when the requested
service is not registered. Use for opt-in services like IBackgroundDeletionService
or IRegisteredClientOriginRegistry.

public static T? GetIdentityServiceOrDefault<T>(this IRouteContext context, IExchange? exchange, string? name = null) where T : class