Skip to content

How to register interfaces in batches #133

Description

@apchenjun

I have many interfaces how to register in batches, for example, I want to register all warehouse interfaces.
inherit AsyncInterceptorBase or IAsyncInterceptor ,can not be used .EnableInterfaceInterceptors().InterceptedBy(typeof(TransactionalInterceptor))

var myClass = new ClasThatImplementsIMyInterface();
var generator = new ProxyGenerator();
var interceptor = new ClasThatExtendsAsyncInterceptorBase();
IMyInterface proxy = generator.CreateInterfaceProxyWithTargetInterface<IMyInterface>(myClass, interceptor)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions