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); }
public GetTourList(WwtOptions options) { _options = options; }
public HiriseDem2Provider(IPlateTilePyramid plateTiles, WwtOptions options) : base(plateTiles, options) { }
public JupiterProvider(IPlateTilePyramid plateTiles, WwtOptions options) { _plateTiles = plateTiles; _options = options; }
public Galex4FarProvider(IPlateTilePyramid plateTiles, WwtOptions options) { _plateTiles = plateTiles; _options = options; }
public GlimpseProvider(IPlateTilePyramid plateTiles, WwtOptions options) { _plateTiles = plateTiles; _options = options; }
public RassToastProvider(IPlateTilePyramid plateTiles, WwtOptions options) { _plateTiles = plateTiles; _options = options; }
public MarsMocProvider(IPlateTilePyramid plateTiles, WwtOptions options) { _plateTiles = plateTiles; _options = options; }
public DemTileProvider(WwtOptions options) { _options = options; }
public MoontoastdemProvider(IPlateTilePyramid plateTiles, WwtOptions options) { _plateTiles = plateTiles; _options = options; }
public LoginProvider(WwtOptions options) { _options = options; }
public MarsdemProvider(WwtOptions options) { _options = options; }
public TychoOctProvider(IPlateTilePyramid plateTiles, WwtOptions options) { _plateTiles = plateTiles; _options = options; }
public MoondemProvider(WwtOptions options) { _options = options; }
public GetTourListProvider(WwtOptions options) : base(options) { }
public HiriseDemProvider(IPlateTilePyramid plateTiles, WwtOptions options) { _plateTiles = plateTiles; _options = options; }
public DSSProvider(IPlateTilePyramid plateTile, WwtOptions options) { _plateTile = plateTile; _options = options; }
public EarthBlendProvider(IPlateTilePyramid plateTiles, WwtOptions options, IVirtualEarthDownloader veDownloader) { _plateTiles = plateTiles; _options = options; _veDownloader = veDownloader; }
public Tiles2Provider(IPlateTilePyramid plateTiles, IKnownPlateFiles knownPlateFiles, WwtOptions options) { _plateTiles = plateTiles; _knownPlateFiles = knownPlateFiles; _options = options; }
public SDSS12ToastProvider(IPlateTilePyramid plateTiles, WwtOptions options, IOctTileMapBuilder octTileMap) { _plateTiles = plateTiles; _options = options; _octTileMap = octTileMap; }
public PostRatingFeedbackProvider(WwtOptions options) { _options = options; }