Esempio n. 1
0
            protected override void Dispose(bool disposing)
            {
                base.Dispose(disposing);

                if (hostService != null)
                {
                    try
                    {
                        hostService.Shutdown();
                    }
                    catch (Exception)
                    {
                        // Ignore the exception since we're shutting down anyways.
                    }
                }

                hostService = null;
            }