private T CreateMethods <T>(IAsyncInterceptor interceptor)
        {
            var proxyBuilder = new ProxyFactoryBuilder(typeof(T));

            proxyBuilder.InterceptMethods();
            return(proxyBuilder.Build().Create <T>(interceptor, eventInterceptor: null));
        }
        private T CreateEvents <T>(IEventInterceptor interceptor)
        {
            var proxyBuilder = new ProxyFactoryBuilder(typeof(T));

            proxyBuilder.InterceptEvents();
            return(proxyBuilder.Build().Create <T>(asyncInterceptor: null, eventInterceptor: interceptor));
        }