AllowMultiply = true
2 posts • Page 1 of 1
AllowMultiply = true
[MulticastAttributeUsage( MulticastTargets.Method, AllowMultiple = true, AutoReplace = true )]
public class HandleExceptionAttribute : : MulticastAttribute, IRequirePostSharp
{...}
When I apply HandleException attribute to some method n times should be correspond advice launched n times?
[HandleException( typeof(Exception), AttributePriority = 0 )]
[HandleException( typeof(ArgumentException, AttributePriority = 1) )]
void SomeMethod()
{
}
Now it is still applied once.
best regards
Ed.ward
public class HandleExceptionAttribute : : MulticastAttribute, IRequirePostSharp
{...}
When I apply HandleException attribute to some method n times should be correspond advice launched n times?
[HandleException( typeof(Exception), AttributePriority = 0 )]
[HandleException( typeof(ArgumentException, AttributePriority = 1) )]
void SomeMethod()
{
}
Now it is still applied once.
best regards
Ed.ward
Edward Pavlov
- Ed_ward
- Posts: 11
- Joined: Sat Jan 12, 2008 4:55 pm
- Full Name: Edward Pavlov
Re: AllowMultiply = true
The code you wrote should generate two instances. If it does not, it may be a bug. You can report it if you are sure it's on PostSharp's side.
Gael
Gael
Gael Fraiteur, project leader
got good support? consider donating to the project.
got good support? consider donating to the project.
- gfraiteur
- Site Admin
- Posts: 581
- Joined: Tue Dec 18, 2007 3:09 pm
- Full Name: Gael Fraiteur
- Company: postsharp.org
2 posts • Page 1 of 1