static void Main(string[] args) { Console.WriteLine("Plug-in Server starting."); Services services = new Services(); services.Start(); Console.WriteLine("Watching directory for changes: {0}", services.PluginDirectory); Console.ReadLine(); services.Stop(); }
private bool FileNamesAreCaseSensitive = (Path.PathSeparator == '/'); // little hack to detect Linux #endregion Fields #region Constructors /// <summary> /// Creates an instance of the <see cref="PluginAppDomainCollection"/> class. /// </summary> /// <param name="services"> /// A reference to the hosting <see cref="Services"/> object. /// </param> public PluginAppDomainCollection(Services services) { this.services = services; appdomains = new HybridDictionary(4, !FileNamesAreCaseSensitive); }
/// <summary> /// Creates an instance of the <see cref="PortManager"/> class. /// </summary> /// <param name="services"> /// A reference to the containing the hosting <see cref="Services"/>. /// </param> public PortManager(Services services) { Services = services; Services.PluginManager.Changed += new EventHandler(PluginManager_Changed); }