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