Exemple #1
0
 public static async Task <bool> ExportSingleChannel(string experimentName, AdcChannel data)
 {
     return(await Task.Run(() =>
     {
         return ExportEngine(
             ExportPath,
             FormatSingleChannel(experimentName, data),
             true,
             data
             );
     }));
 }
Exemple #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);
     }
 }
Exemple #3
0
 private static string FormatSingleChannel(string experimentName, AdcChannel channel)
 {
     return(string.Format("{0}_{1}", experimentName, channel.Name));
 }