private void WriteEventApplicationLifecycle(ApplicationLifecycleEventCategory category, string message, string portalUrl, string portalVersion, string portalProductionOrTrialType, string sessionId, string elapsedTime)
        {
            InternalTrace.TraceEvent(
                PortalSettings.Instance, TraceEventType.Information, (int)EventName.ApplicationLifecycle,
                "Lifecycle = {0} Message = {1} PortalURL = {2} PortalVersion = {3} PortalProductionOrTrial = {4} sessionId = {5} elapsedTime= {6}",
                category, message, portalUrl, portalVersion, portalProductionOrTrialType, sessionId, elapsedTime);

            this.WriteEvent(EventName.ApplicationLifecycle, category, message, portalUrl, portalVersion, portalProductionOrTrialType, sessionId, elapsedTime);
        }
 public void WriteApplicationLifecycleEvent(ApplicationLifecycleEventCategory category, string message = "")
 {
     this.WriteEventApplicationLifecycle(
         category,
         message,
         this.PortalUrl,
         this.PortalVersion,
         this.ProductionOrTrial,
         this.SessionId,
         this.ElapsedTime());
 }