public static void LogInternalCheckoutEvent(IWorkSession workSession, DocumentDiagnosticEventArgs args) { LogRedisOperationEventCore( "internal check out", workSession != null ? workSession.ID.ToString() : "none", workSession != null ? workSession.DocumentInfo.DocumentId : "none", StateLockerIdentificator.GeGlobalDomainId(), "unknown"); }
private static void LogHandlerException(IWorkSession workSession, DocumentRequestProcessingExceptionEventArgs e) { string status = GetExceptionLogText(e.Exception); LogRedisOperationEventCore( "Handler Exception", e.WorkSessionId.ToString(), e.DocumentInfo != null ? e.DocumentInfo.DocumentId : "none", StateLockerIdentificator.GeGlobalDomainId(), status); }
private static void LogTryRepeaterTryException(Exception e) { string status = GetExceptionLogText(e); LogRedisOperationEventCore( "TryRepeater Step-Try Exception", "-", "-", StateLockerIdentificator.GeGlobalDomainId(), status); }
public static string PatchDomainId(string domainId) { return(domainId + "(" + System.Diagnostics.Process.GetCurrentProcess().Id.ToString() + "/" + StateLockerIdentificator.GetProcessesThreadId() + ")"); }