public static void UnregisterServer(string s) { try { Logger.LogInfo("Attempt to unregister OPMedia.ShellSupport ..."); SuiteRegistrationSupport.Init(MediaRenderer.GetSupportedFileProvider()); SuiteRegistrationSupport.UnregisterKnownFileTypes(); SuiteRegistrationSupport.UnregisterContextMenuHandler(); SuiteRegistrationSupport.ReloadFileAssociations(); Logger.LogInfo("OPMedia.ShellSupport was succesfully unregistered !"); } catch (Exception exception) { ErrorDispatcher.DispatchFatalError("Fatal unregistration error: " + exception.Message); } }
private MediaRenderer(bool isDefaultInstance) { streamRenderer = null; SuiteRegistrationSupport.Init(GetSupportedFileProvider()); timerCheckState = new Timer(); timerCheckState.Enabled = true; timerCheckState.Interval = 500; timerCheckState.Start(); timerCheckState.Tick += new EventHandler(timerCheckState_Tick); if (isDefaultInstance && ProTONEConfig.IsPlayer && ProTONEConfig.SignalAnalisysFunctionActive(SignalAnalisysFunction.WCFInterface)) { InternalInitSignalAnalisysWCF(); } }