public static string GenerateLogsFileName(IEndpointInfo endpointInfo) { return(FormattableString.Invariant($"{Utilities.GetFileNameTimeStampUtcNow()}_{endpointInfo.ProcessId}.txt")); }
public static string GenerateDumpFileName() { return(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? FormattableString.Invariant($"dump_{Utilities.GetFileNameTimeStampUtcNow()}.dmp") : FormattableString.Invariant($"core_{Utilities.GetFileNameTimeStampUtcNow()}")); }