public async Task <bool> FlushAsync(AboutLog log)
        {
            Write(Encoding.Default.GetBytes(log.GetMessage().ToArray()));
            await fileStream.FlushAsync();

            return(true);
        }
Beispiel #2
0
 public bool Flush(AboutLog logInfo)
 {
     Write(Encoding.Default.GetBytes(logInfo.GetMessage().ToArray()));
     udpClient.Close();
     return(true);
 }
 public bool Flush(AboutLog log)
 {
     Write(Encoding.Default.GetBytes(log.GetMessage().ToArray()));
     fileStream.Flush();
     return(true);
 }