コード例 #1
0
 public static async Task <bool> ExportSingleChannel(string experimentName, AdcChannel data)
 {
     return(await Task.Run(() =>
     {
         return ExportEngine(
             ExportPath,
             FormatSingleChannel(experimentName, data),
             true,
             data
             );
     }));
 }
コード例 #2
0
 public static bool CheckIfAlreadyExists(string experimentName, AdcChannel channel)
 {
     try
     {
         return(File.Exists(ComputePath(
                                ExportPath,
                                FormatSingleChannel(experimentName, channel),
                                false
                                )));
     }
     catch (Exception ex)
     {
         Log(ex, Default.msgFileExistenceCheckFailed);
         return(true);
     }
 }
コード例 #3
0
 private static string FormatSingleChannel(string experimentName, AdcChannel channel)
 {
     return(string.Format("{0}_{1}", experimentName, channel.Name));
 }