/// <summary> /// Initializes the runtime. /// </summary> /// <param name="registry">The registry.</param> /// <param name="pluginLoader">The plugin loader.</param> /// <param name="assemblyLoader">The assembly loader.</param> /// <param name="runtimeSetup">The runtime setup options.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="registry"/>, /// <paramref name="pluginLoader"/>, <paramref name="assemblyLoader"/> or /// <paramref name="runtimeSetup" /> is null.</exception> public DefaultRuntime(IRegistry registry, IPluginLoader pluginLoader, IAssemblyLoader assemblyLoader, RuntimeSetup runtimeSetup) { if (registry == null) { throw new ArgumentNullException("registry"); } if (pluginLoader == null) { throw new ArgumentNullException("pluginLoader"); } if (assemblyLoader == null) { throw new ArgumentNullException(@"assemblyResolverManager"); } if (runtimeSetup == null) { throw new ArgumentNullException(@"runtimeSetup"); } this.registry = registry; this.pluginLoader = pluginLoader; this.assemblyLoader = assemblyLoader; this.runtimeSetup = runtimeSetup.Copy(); dispatchLogger = new DispatchLogger(); pluginDirectories = new List <string>(); conditionContext = new RuntimeConditionContext(); }
/// <summary> /// Initializes the runtime. /// </summary> /// <param name="registry">The registry.</param> /// <param name="pluginLoader">The plugin loader.</param> /// <param name="assemblyLoader">The assembly loader.</param> /// <param name="runtimeSetup">The runtime setup options.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="registry"/>, /// <paramref name="pluginLoader"/>, <paramref name="assemblyLoader"/> or /// <paramref name="runtimeSetup" /> is null.</exception> public DefaultRuntime(IRegistry registry, IPluginLoader pluginLoader, IAssemblyLoader assemblyLoader, RuntimeSetup runtimeSetup) { if (registry == null) throw new ArgumentNullException("registry"); if (pluginLoader == null) throw new ArgumentNullException("pluginLoader"); if (assemblyLoader == null) throw new ArgumentNullException(@"assemblyResolverManager"); if (runtimeSetup == null) throw new ArgumentNullException(@"runtimeSetup"); this.registry = registry; this.pluginLoader = pluginLoader; this.assemblyLoader = assemblyLoader; this.runtimeSetup = runtimeSetup.Copy(); dispatchLogger = new DispatchLogger(); pluginDirectories = new List<string>(); conditionContext = new RuntimeConditionContext(); }