.Net - Load Type dynamically from AppDomain without remoting proxy -


I've loaded a specific AppDomain and I want some kind of it to dynamically load I (piece of cake right ?). It all CreateInstance methods that app domain Class retire Cheats is as remoting object handles. Remoting have proxy limitations, which I would like to save: such as Sirijlaybl concrete class, and more garbage collection, unless Laiftaimsewayr have not used.

My question is how can I load a type in another app domain without wrapping it in a remote proxy? Below is a snippet of my code.

  AppDomainSetup ads = New AppDomainSetup (); Ads.ApplicationBase = Path.Get directory name (_bllAssemblyPath); Ads.PrivateBinPath = Pathgate Directory Name (_bllAssemblyPath); If (File.Exists (_bllAssemblyPath + ".config") ads.ConfigurationFile = _bllAssemblyPath + ".config"; _workerSpace = AppDomain.CreateDomain ( "workers", the new system. Security. Policy. Award (AppDomain.CurrentDomain.Evidence), Advertising); _bllQueue = _workerSpace.CreateInstanceFrom (_bllAssemblyPath, queueType) as IThumbCapQueue;  

need proxy you always have some type of win NAT between AP you can not access memory directly to objects in other application domains also note that Your In both cases, AppDomains will run within the same Windows process.

There is a new infrastructure for remoting: it can give you the features you want.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -