Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

IFeatureCollection indexer is pretty bad #414

Closed
@lodejard

Description

@lodejard

This usage is pretty awful:

var feature = httpContext.Features[typeof(IServiceProvidersFeature)] as IServiceProvidersFeature;

It doesn't show up in intellisense, and GetFeature/SetFeature don't appear on HttpContext...

Didn't we have something more like this at one point?

var feature = yadda.GetFeature<IServiceProvidersFeature>();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions