Beispiel #1
0
        public static IMagicMediaServerBuilder AddBingMaps(
            this IMagicMediaServerBuilder builder,
            BingMapsOptions options)
        {
            builder.Services.AddSingleton(options);
            builder.Services.AddSingleton <IGeoDecoderService, BingMapsGeoDecoderService>();

            return(builder);
        }
Beispiel #2
0
        public static IMagicMediaServerBuilder AddBingMaps(
            this IMagicMediaServerBuilder builder)
        {
            BingMapsOptions options = builder.Configuration
                                      .GetSection("MagicMedia:BingMaps")
                                      .Get <BingMapsOptions>();

            builder.AddBingMaps(options);

            return(builder);
        }
Beispiel #3
0
 public BingMapsGeoDecoderService(BingMapsOptions options)
 {
     _options = options;
 }