Example #1
0
        private static T CreateAndStoreProxy <T>(MimeInterceptor interceptor, T instance) where T : class
        {
            ThrowIfNotInterface(typeof(T));

            var proxy = new MimeProxy <T>(interceptor, instance);

            proxyObjectsAndProxies.Add(proxy.Object, proxy);
            return(proxy.Object);
        }
Example #2
0
 public MimeProxy(MimeInterceptor interceptor)
 {
     _interceptor = interceptor;
 }