In Metalama, implement the BuildAspect(IAspectBuilder<T>) method and call
builder
.Advice.AddContract(IParameter, string, ContractDirection, object?, object?).
Namespace: PostSharp.Aspects.Advices
Assembly: Metalama.Migration.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
[Obsolete("In Metalama, implement the 'IAspect<T>.BuildAspect(IAspectBuilder<T>)' method and call <c>builder</c>.'IAspectBuilder.Advice'.'IAdviceFactory.AddContract(IParameter, string, ContractDirection, object?, object?)'.", false)]
public class LocationValidationAdvice : GroupingAdvice
Constructors
Name | Description |
---|---|
LocationValidationAdvice() |
Properties
Name | Description |
---|---|
Priority |