// Continue from our constructor to initialize our module public void Initialize(IHttpServer server) { m_log.Info("[SLIPSTREAM]: Running Initialize"); Server = server; string modulepath = String.Empty; m_log.InfoFormat("[SLIPSTREAM]: Module Loading. Path {0}/{1}", PluginPath, ServiceModuleName); if (PluginPath.Contains(".dll")) { modulepath = PluginPath; } else { modulepath = String.Format("{0}/{1}", PluginPath, ServiceModuleName); } Object[] args = new Object[] { Config, ConfigName }; ServiceModule = ServerUtils.LoadPlugin <IService>(modulepath, args); server.AddStreamHandler(new GetHandler(ServiceModule)); }