You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
866 B
30 lines
866 B
using System; |
|
using System.Collections.Generic; |
|
using System.Linq; |
|
using System.Text; |
|
|
|
namespace ILRuntime.Runtime.CLRBinding |
|
{ |
|
public class CLRBindingUtils |
|
{ |
|
|
|
static private Action<ILRuntime.Runtime.Enviorment.AppDomain> initializeAction; |
|
static public void RegisterBindingAction(Action<ILRuntime.Runtime.Enviorment.AppDomain> action) |
|
{ |
|
initializeAction = action; |
|
} |
|
|
|
/// <summary> |
|
/// This method can instead of CLRBindings.Initialize for avoid compile error when hasn't generator bindingCode. |
|
/// </summary> |
|
/// <param name="appDomain"></param> |
|
static public void Initialize(ILRuntime.Runtime.Enviorment.AppDomain appDomain) |
|
{ |
|
if (initializeAction != null) |
|
{ |
|
initializeAction(appDomain); |
|
} |
|
} |
|
|
|
} |
|
}
|
|
|