Beispiel #1
0
 public static PathDataType FromHostType(Jedzia.BackBock.DataAccess.DTO.PathDataType source)
 {
     var local = new PathDataType();
     local.Path = source.Path;
     local.UserData = source.UserData;
     if (source.Exclusion != null)
         local.Exclusion = source.Exclusion.Select(wld => Wildcard.FromHostType(wld)).ToArray();
     if (source.Inclusion != null)
         local.Inclusion = source.Inclusion.Select(wld => Wildcard.FromHostType(wld)).ToArray();
     return local;
 }
Beispiel #2
0
        public static PathDataType FromHostType(Jedzia.BackBock.DataAccess.DTO.PathDataType source)
        {
            var local = new PathDataType();

            local.Path     = source.Path;
            local.UserData = source.UserData;
            if (source.Exclusion != null)
            {
                local.Exclusion = source.Exclusion.Select(wld => Wildcard.FromHostType(wld)).ToArray();
            }
            if (source.Inclusion != null)
            {
                local.Inclusion = source.Inclusion.Select(wld => Wildcard.FromHostType(wld)).ToArray();
            }
            return(local);
        }
Beispiel #3
0
        public static BackupItemType FromHostType(Jedzia.BackBock.DataAccess.DTO.BackupItemType source)
        {
            var local = new BackupItemType();

            local.IsEnabled = source.IsEnabled;
            local.ItemGroup = source.ItemGroup;
            local.ItemName  = source.ItemName;
            if (source.Task != null)
            {
                local.Task = TaskType.FromHostType(source.Task);
            }
            if (source.Path != null)
            {
                local.Path = source.Path.Select(wld => PathDataType.FromHostType(wld)).ToArray();
            }
            return(local);
        }