Skip to content

Feature: SkipInjection support set aspect type #242

@ljnober

Description

@ljnober

Describe the solution you'd like
I hope that SkipInjection can be combined with Injection instead of being disabled directly.Or there are already existing solutions?
Define

[Aspect(Scope.Global)]
public class AAspect{}

[Aspect(Scope.Global)]
public class BAspect{}

[Injection(typeof(AAspect))]
public class EnableA:Attribute{}

[SkipInjection(typeof(AAspect))]
public class DisableA:Attribute{}

[Injection(typeof(BAspect))]
public class EnableB:Attribute{}

[SkipInjection(typeof(BAspect))]
public class DisableB:Attribute{}

Use

[assembly: EnableA]
[assembly: EnableB]

[DisableA]
public class Foo{}

public class Bar{
[DisableB]
public void DoSomething();
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions