Task IFeature.Activate(JasperRuntime runtime, GenerationRules generation) { var settings = runtime.Get <DiagnosticsSettings>(); return(Task.Factory.StartNew(() => { _server = new DiagnosticsServer(); _server.Start(settings, runtime.Container); })); }