MCPcopy Create free account
hub / github.com/aptabase/aptabase / AddGeoIPClient

Method AddGeoIPClient

src/Features/GeoIP/GeoIPExtensions.cs:5–14  ·  view source on GitHub ↗
(this IServiceCollection services, EnvSettings env)

Source from the content-addressed store, hash-verified

3public static class GeoIPExtensions
4{
5 public static void AddGeoIPClient(this IServiceCollection services, EnvSettings env)
6 {
7 if (env.IsManagedCloud)
8 {
9 services.AddSingleton<GeoIPClient, CloudGeoClient>();
10 return;
11 }
12
13 services.AddSingleton<GeoIPClient, DatabaseGeoClient>();
14 }
15}

Callers 1

MainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected