Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can the Enable(Type TFilter), Disable(Type TFilter), and IsEnabled(Type TFilter) methods be added to the IDataFilter interface #15988

Open
1 task done
choby opened this issue Mar 17, 2023 · 0 comments
Labels
Milestone

Comments

@choby
Copy link

choby commented Mar 17, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Sometimes our filter interface needs to use generics, but the generic interface cannot be passed directly to the IDataFilter interface as a type parameter. Instead, it needs to be obtained through the typeof method,like this, we have an interface :

public interface ISupplier<TValue>
{
    TValue SupplierId{get;}
}

now, the availability of the ISupper interface cannot be obtained through IDataFilter

Describe the solution you'd like

public interface IDataFilter 
{
    IDisposable Enable(Type TFilter);

    IDisposable Disable(Type TFilter);

    bool IsEnabled(Type TFilter);
}

Additional context

No response

@choby choby added the feature label Mar 17, 2023
@berkansasmaz berkansasmaz added this to the backlog milestone Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants