Exemplo n.º 1
0
        /// <summary>
        /// Gets the name of the trace file.
        /// </summary>
        /// <returns>The name name fo the trace file</returns>
        internal async Task <String> GetTraceFileName()
        {
            if (file == null)
            {
                file = await AceQLCommandUtil.GetTraceFileAsync().ConfigureAwait(false);
            }

            return(file.Name);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Traces the specified string.
 /// </summary>
 /// <param name="contents">The string to trace</param>
 internal async Task TraceAsync(String contents)
 {
     if (traceOn)
     {
         if (file == null)
         {
             file = await AceQLCommandUtil.GetTraceFileAsync().ConfigureAwait(false);
         }
         contents = DateTime.Now + " " + contents;
         await PortableFile.AppendAllTextAsync(file, "\r\n" + contents).ConfigureAwait(false);
     }
 }