public DefaultInvoker() { var invocationManager = new CustomReferencesManager(); var references = invocationManager.GetReferences(); foreach (var r in references) Assembly.LoadFrom(r); }
private void LoadDependentAssemblies(string referencesPath) { var invocationManager = new CustomReferencesManager(); var references = invocationManager.GetReferences(referencesPath); foreach (var r in references) { Assembly.LoadFrom(r); } }
private static void LoadAssemblyDepedencies() { var invocationManager = new CustomReferencesManager(); var references = invocationManager.GetReferences(); foreach (var r in references) { Assembly.LoadFrom(r); } }
public SingletonInvoker(IFunction function) { var invocationManager = new CustomReferencesManager(); var references = invocationManager.GetReferences(); foreach (var r in references) { Assembly.LoadFrom(r); } var assembly = Assembly.Load(function.FunctionSettings.Assembly.Content); _type = assembly.GetType(function.FunctionSettings.ModuleName); _instance = Activator.CreateInstance(_type); }