public override void OnStart()
        {
            var config = GetConfiguration <HtmlExportPluginConfiguration>();

            container = containerSetup.CreateContainer(config);

            htmlExportActivity = container.Resolve <IHtmlExportActivity>();
            htmlExportActivity.Start();

            Log(System.Diagnostics.TraceEventType.Information, "{0} started", PluginName);
        }
        public override void OnStop()
        {
            if (htmlExportActivity != null)
            {
                htmlExportActivity.Stop();
            }
            if (container != null)
            {
                container.Dispose();
            }

            htmlExportActivity = null;
            container          = null;

            Log(System.Diagnostics.TraceEventType.Information, "{0} stopped", PluginName);
        }