Пример #1
0
 public DMLibTransferDirection(
     DMLibDataType sourceType,
     DMLibDataType destType,
     DMLibCopyMethod copyMethod,
     List <string> tags)
     : base(tags)
 {
     this.SourceType = sourceType;
     this.DestType   = destType;
     this.CopyMethod = copyMethod;
 }
Пример #2
0
 public DMLibTestMethodAttribute(
     DMLibDataType dataType,
     DMLibCopyMethod copymethod = DMLibCopyMethod.SyncCopy,
     string[] tags = null)
     : this(
         dataType,
         DMLibDataType.Unspecified,
         copymethod,
         tags)
 {
 }
Пример #3
0
 public DMLibTestMethodAttribute(
     DMLibDataType sourceType,
     DMLibDataType destType,
     DMLibCopyMethod copymethod = DMLibCopyMethod.SyncCopy,
     string[] tags = null)
     : base(tags)
 {
     this.SourceType = sourceType;
     this.DestType   = destType;
     this.CopyMethod = copymethod;
 }
Пример #4
0
        public static CopyMethod ToCopyMethod(this DMLibCopyMethod copyMethod)
        {
            switch (copyMethod)
            {
            case DMLibCopyMethod.ServiceSideAsyncCopy:
                return(CopyMethod.ServiceSideAsyncCopy);

            case DMLibCopyMethod.ServiceSideSyncCopy:
                return(CopyMethod.ServiceSideSyncCopy);

            default:
                return(CopyMethod.SyncCopy);
            }
        }