public virtual void CopyTo(IEasyEndpoint destEasyEndPoint, params string[] fileNames)
 {
     if (!destEasyEndPoint.CanWrite())
     {
         return;
     }
     if (!this.HasFiles())
     {
         return;
     }
     foreach (string strFileName in fileNames)
     {
         byte[] fileBytes = Read(strFileName);
         if (fileBytes != null)
         {
             destEasyEndPoint.Write(strFileName, fileBytes);
         }
     }
 }
Beispiel #2
0
 public static bool CanListen(this IEasyEndpoint endpoint)
 {
     return(Convert.ToBoolean(endpoint.GetEasyProperty("CanListen", "False")));
 }
Beispiel #3
0
 public static bool CanStream(this IEasyEndpoint endpoint)
 {
     return(Convert.ToBoolean(endpoint.GetEasyProperty("CANSTREAM", "False")));
 }
Beispiel #4
0
 public static bool HasFiles(this IEasyEndpoint endpoint)
 {
     return(Convert.ToBoolean(endpoint.GetEasyProperty("HASFILES", "False")));
 }
 public virtual void Write(DataSet dataSet, string fileName = "", IEasyEndpoint epoint = null)
 {
     _dataSet = dataSet;
     Write(fileName, epoint);
 }
 public virtual void Write(string fileName, IEasyEndpoint epoint = null)
 {
     ExportFileName = fileName;
     endpoint       = epoint;
     Write();
 }