/// <summary> /// Adds a path to the DarkRift server that will be searched for plugins. /// </summary> /// <param name="source">The path to search.</param> /// <returns>The configuration builder to continue construction.</returns> public DarkRiftServerConfigurationBuilder AddPluginSearchPath(string source) { ServerSpawnData.PluginSearchSettings.PluginSearchPath pluginSearchPath = new ServerSpawnData.PluginSearchSettings.PluginSearchPath { Source = source }; ServerSpawnData.PluginSearch.PluginSearchPaths.Add(pluginSearchPath); return(this); }
/// <summary> /// Adds a path to the DarkRift server that will be searched for plugins. /// </summary> /// <param name="source">The path to search.</param> /// <param name="dependencyResolutionStrategy">How dependencies for plugins loaded from this path should be resolved.</param> /// <returns>The configuration builder to continue construction.</returns> public DarkRiftServerConfigurationBuilder AddPluginSearchPath(string source, DependencyResolutionStrategy dependencyResolutionStrategy) { ServerSpawnData.PluginSearchSettings.PluginSearchPath pluginSearchPath = new ServerSpawnData.PluginSearchSettings.PluginSearchPath { Source = source, DependencyResolutionStrategy = dependencyResolutionStrategy }; ServerSpawnData.PluginSearch.PluginSearchPaths.Add(pluginSearchPath); return(this); }
/// <summary> /// Adds a path to the DarkRift server that will be searched for plugins. /// </summary> /// <param name="source">The path to search.</param> /// <param name="createDirectory">Whether a directory should be created if it does not exist.</param> /// <returns>The configuration builder to continue construction.</returns> public DarkRiftServerConfigurationBuilder AddPluginSearchPath(string source, bool createDirectory) { ServerSpawnData.PluginSearchSettings.PluginSearchPath pluginSearchPath = new ServerSpawnData.PluginSearchSettings.PluginSearchPath { Source = source, CreateDirectory = createDirectory }; ServerSpawnData.PluginSearch.PluginSearchPaths.Add(pluginSearchPath); return(this); }