Example #1
0
 /// <summary>
 /// Returns a proxy to an instance of the specified plugin type
 /// </summary>
 /// <param name="typeName">The name of the type to create an instance of</param>
 /// <param name="bindingFlags">The binding flags for the constructor</param>
 /// <param name="constructorParams">The parameters to pass to the constructor</param>
 /// <returns>The constructed object</returns>
 public MarshalByRefObject CreateInstance(string typeName, BindingFlags bindingFlags,
                                          object[] constructorParams)
 {
     if (!started)
     {
         throw new InvalidOperationException("PluginManager has not been started.");
     }
     return(LocalLoader.CreateInstance(typeName, bindingFlags, constructorParams));
 }