Example #1
0
        public static void AddRequestProviders(this IServiceCollection services, Action <WwtOptions> config)
        {
            var manager = new EndpointManager();
            var types   = typeof(RequestProvider).Assembly.GetTypes()
                          .Where(t => !t.IsAbstract && typeof(RequestProvider).IsAssignableFrom(t));

            foreach (var type in types)
            {
                services.AddSingleton(type);

                foreach (var endpoint in type.GetCustomAttributes <RequestEndpointAttribute>())
                {
                    manager.Add(endpoint.Endpoint, type);
                }
            }

            services.AddSingleton(manager);

            services.AddSingleton <IFileNameHasher, Net4x32BitFileNameHasher>();
            services.AddSingleton <IOctTileMapBuilder, OctTileMapBuilder>();
            services.AddSingleton <IMandelbrot, Mandelbrot>();
            services.AddSingleton <IVirtualEarthDownloader, VirtualEarthDownloader>();
            services.AddSingleton <IDevDataAccessor, DevDataAccessor>();

            var options = new WwtOptions();

            config(options);

            services.AddSingleton(options);
        }
Example #2
0
 public GetTourList(WwtOptions options)
 {
     _options = options;
 }
Example #3
0
 public HiriseDem2Provider(IPlateTilePyramid plateTiles, WwtOptions options)
     : base(plateTiles, options)
 {
 }
Example #4
0
 public JupiterProvider(IPlateTilePyramid plateTiles, WwtOptions options)
 {
     _plateTiles = plateTiles;
     _options    = options;
 }
Example #5
0
 public Galex4FarProvider(IPlateTilePyramid plateTiles, WwtOptions options)
 {
     _plateTiles = plateTiles;
     _options    = options;
 }
Example #6
0
 public GlimpseProvider(IPlateTilePyramid plateTiles, WwtOptions options)
 {
     _plateTiles = plateTiles;
     _options    = options;
 }
Example #7
0
 public RassToastProvider(IPlateTilePyramid plateTiles, WwtOptions options)
 {
     _plateTiles = plateTiles;
     _options    = options;
 }
Example #8
0
 public MarsMocProvider(IPlateTilePyramid plateTiles, WwtOptions options)
 {
     _plateTiles = plateTiles;
     _options    = options;
 }
Example #9
0
 public DemTileProvider(WwtOptions options)
 {
     _options = options;
 }
Example #10
0
 public MoontoastdemProvider(IPlateTilePyramid plateTiles, WwtOptions options)
 {
     _plateTiles = plateTiles;
     _options    = options;
 }
Example #11
0
 public LoginProvider(WwtOptions options)
 {
     _options = options;
 }
Example #12
0
 public MarsdemProvider(WwtOptions options)
 {
     _options = options;
 }
Example #13
0
 public TychoOctProvider(IPlateTilePyramid plateTiles, WwtOptions options)
 {
     _plateTiles = plateTiles;
     _options    = options;
 }
Example #14
0
 public MoondemProvider(WwtOptions options)
 {
     _options = options;
 }
Example #15
0
 public GetTourListProvider(WwtOptions options)
     : base(options)
 {
 }
Example #16
0
 public HiriseDemProvider(IPlateTilePyramid plateTiles, WwtOptions options)
 {
     _plateTiles = plateTiles;
     _options    = options;
 }
Example #17
0
 public DSSProvider(IPlateTilePyramid plateTile, WwtOptions options)
 {
     _plateTile = plateTile;
     _options   = options;
 }
Example #18
0
 public EarthBlendProvider(IPlateTilePyramid plateTiles, WwtOptions options, IVirtualEarthDownloader veDownloader)
 {
     _plateTiles   = plateTiles;
     _options      = options;
     _veDownloader = veDownloader;
 }
Example #19
0
 public Tiles2Provider(IPlateTilePyramid plateTiles, IKnownPlateFiles knownPlateFiles, WwtOptions options)
 {
     _plateTiles      = plateTiles;
     _knownPlateFiles = knownPlateFiles;
     _options         = options;
 }
Example #20
0
 public SDSS12ToastProvider(IPlateTilePyramid plateTiles, WwtOptions options, IOctTileMapBuilder octTileMap)
 {
     _plateTiles = plateTiles;
     _options    = options;
     _octTileMap = octTileMap;
 }
Example #21
0
 public PostRatingFeedbackProvider(WwtOptions options)
 {
     _options = options;
 }