You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
services.ConfigureDynamicProxy({
c=>c.Interceptors.AddServiced<LogInterceptor>(
m=>m.DeclaringType.Name.EndsWith("AppService"));
c.OnGenerateProxy(context=>context.TypeBuilder.SetCustomAttribute(CustomAttributeBuildeUtils.DefineCustomAttribute(typeof(DynamicallyAttribute)););[NonAspect]
public interface IAspectConfiguration
{
AspectValidationHandlerCollection ValidationHandlers {get;}
InterceptorCollection Interceptors {get;}
NonAspectPredicateCollection NonAspectPredicates {get;}bool ThrowAspectException {get;set;}
IAspectConfiguration OnGenerateProxy(Action<GenerateProxyContext> configureAction);}
public sealed class GenerateProxyContext
{
public TypeBuilder TypeBuilder {get;init;}
public Type ServiceType {get;init;}
public Type ImplementType {get;init;}}
Activity
liuhaoyang commentedon Dec 27, 2020
不错的提议,考虑添加。