Skip to content

Other di containers #126

Closed
Closed

Description

@da1rren

Hey Guys,

We're attempting to use this in a .net framework application that uses autofac. While attempting to register the various dependencies:

  • ConfigurationFeatureDefinitionProvider
  • FeatureManager
  • EmptySessionManager
  • FeatureManagerSnapshot

I've discovered that they are all sealed, is there any guidance or is it even possible to use this without resorting to reflection hacks?

Activity

  1. jeffcollaboro commented on Jul 9, 2021

    @jeffcollaboro

    ... or any other number of containers, Simple Injector etc, These classes are the public interface into feature flags they shouldn't be internal, we need to instantiate them to use this.

  2. danielmackay commented on Jul 18, 2023

    @danielmackay

    We're having this problem also. It would be great to see some guidance of how to use the FeatureManager with other IoC containers.

  3. zhiyuanliang-ms commented on Nov 16, 2023

    @zhiyuanliang-ms
    Member

    Update:
    The PR #302 of exposing FeatureManager to public has been merged into main branch. Now the FeatureManagement should be compatible with other DI framework.

  4. zhiyuanliang-ms commented on Nov 23, 2023

    @zhiyuanliang-ms
    Member

    Fixed in release 3.1.0

  5. zhiyuanliang-ms commented on Nov 29, 2023

    @zhiyuanliang-ms
    Member

    I created a repo to demonstrate how to use Microsoft.FeatureManagement in third-party Di containers: https://github.com/zhiyuanliang-ms/FeatureManagement-Dotnet-DependencyInjection
    :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions