Tinkr2/4.2/AphelionCore/AphelionCore/Core/Core.cs
/// <summary>
/// Shells a full NETMF application in a new AppDomain.
/// </summary>
/// <param name="appData">Raw bytes of application PE file to be shelled.</param>
/// <param name="domain">Name to give the new AppDomain.</param>
/// <returns>true if completed successfully; else false</returns>
/// <remarks>
/// This is a blocking method, the primary application will not respond until the shelled application terminates.
/// To start an application non blocking use <see cref="LaunchApplication(byte[], string[])"/>
/// </remarks>
Shells a full NETMF application in a new AppDomain.
Shells a full NETMF application in a new AppDomain .
public static bool ShellNETMF(byte[] appData, string domain)
      {
         AppDomain ad = AppDomain.CreateDomain(domain);
         var launcher = (IApplicationLauncher)ad.CreateInstanceAndUnwrap(typeof(IApplicationLauncher).Assembly.FullName, typeof(ApplicationLauncher).FullName);
         bool bOk = launcher.ShellApp(_instance, appData);
         AppDomain.Unload(ad);
         return bOk;
      }
public static bool ShellNETMF ( byte [ ] appData , string domain ) { AppDomain ad = AppDomain . CreateDomain ( domain ) ; var launcher = ( IApplicationLauncher ) ad . CreateInstanceAndUnwrap ( typeof ( IApplicationLauncher ) . Assembly . FullName , typeof ( ApplicationLauncher ) . FullName ) ; bool bOk = launcher . ShellApp ( _instance , appData ) ; AppDomain . Unload ( ad ) ; return bOk ; }
Shells a full NETMF application in a new AppDomain.
Shells a full NETMF application in a new AppDomain .
true if completed successfully; else false
true if completed successfully ; else false
appData
byte[]
Raw bytes of application PE file to be shelled.
Raw bytes of application PE file to be shelled .
domain
string
Name to give the new AppDomain.
Name to give the new AppDomain .
remarks
This is a blocking method, the primary application will not respond until the shelled application terminates.
To start an application non blocking use
This is a blocking method the primary application will not respond until the shelled application terminates . To start an application non blocking use