public AsyncProxyGenerator(IZooyardPools zooyardPools, string app, string version) { _proxyTypeCaches = new ConcurrentDictionary <Type, Dictionary <Type, Type> >(); _proxyAssembly = new ProxyAssembly(); _zooyardPools = zooyardPools; _app = app; _version = version; }
internal ProxyBuilder(ProxyAssembly assembly, TypeBuilder tb, Type proxyBaseType) { _assembly = assembly; _tb = tb; _proxyBaseType = proxyBaseType; _fields = new List <FieldBuilder> { //tb.DefineField("_provider", typeof(IProxyProvider), FieldAttributes.Private), //tb.DefineField("_key", typeof(object), FieldAttributes.Private), tb.DefineField("_handler", typeof(ProxyHandler), FieldAttributes.Private), }; }