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

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

            builder.AddBingMaps(options);

            return(builder);
        }
Ejemplo n.º 3
0
 public BingMapsGeoDecoderService(BingMapsOptions options)
 {
     _options = options;
 }