Exemplo n.º 1
0
 private static async Task WriteInFile(UserOnlineInfo info, string path = "")
 {
     var directory = $"{path}\\{info.Id}\\{info.DateTime.Year}\\{info.DateTime.Month}";
     var name      = info.DateTime.Day.ToString();
     await FileWriter.WriteInFileAsync(directory, name, $"{info.DateTime:HH:mm:ss} : {info.OnlineInfo}{Environment.NewLine}");
 }