public static DIHelper AddIPRestrictionsService(this DIHelper services) { services.TryAddScoped <IPRestrictionsService>(); services.TryAddSingleton <IPRestrictionsServiceCache>(); return(services.AddIPRestrictionsRepositoryService()); }