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