-
Notifications
You must be signed in to change notification settings - Fork 120
Open
Labels
Description
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();
}Reactions are currently unavailable