// ©w¸q ÄdºIµ¦²¤ static void ConfigureDora(InterceptionBuilder interceptionBuilder) { interceptionBuilder .AddPolicy ( policyBuilder => policyBuilder .For <LogInterceptorAttribute> ( order: 1, builder => builder.To <CustomerService>(target => target.IncludeMethod(service => service.GetAllAsync())) .To <CustomerRepository>(target => target.IncludeMethod(repository => repository.GetAllAsync())) ) .For <LogAttribute> ( order: 2, builder => builder.To <CustomerService>(target => target.IncludeMethod(service => service.GetAllAsync())) .To <CustomerRepository>(target => target.IncludeMethod(repository => repository.GetAllAsync())) ) ); }
static void Configure(InterceptionBuilder interceptionBuilder) { interceptionBuilder.AddPolicy("Interception.dora", script => script .AddReferences(Assembly.GetExecutingAssembly()) .AddImports("App")); }