Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ IsFilesSelected.GetHashCode();
         hashCode = (hashCode * 397) ^ IsFoldersSelected.GetHashCode();
         hashCode = (hashCode * 397) ^ IsFilesAndFoldersSelected.GetHashCode();
         hashCode = (hashCode * 397) ^ (InputPath != null ? InputPath.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ IsFilesSelected.GetHashCode();
         hashCode = (hashCode * 397) ^ IsFoldersSelected.GetHashCode();
         hashCode = (hashCode * 397) ^ IsFilesAndFoldersSelected.GetHashCode();
         hashCode = (hashCode * 397) ^ (ServerInputPath != null ? ServerInputPath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SharepointSource != null ? SharepointSource.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ SharepointServerResourceId.GetHashCode();
         return(hashCode);
     }
 }
 public override IEnumerable <StateVariable> GetState()
 {
     return(new[]
     {
         new StateVariable
         {
             Name = "SelectedSource.ResourceID",
             Type = StateVariable.StateType.Input,
             Value = SelectedSource.ResourceID.ToString()
         },
         new StateVariable
         {
             Name = "ToPath",
             Type = StateVariable.StateType.Input,
             Value = ToPath
         },
         new StateVariable
         {
             Name = "IsFilesSelected",
             Type = StateVariable.StateType.Input,
             Value = IsFilesSelected.ToString()
         },
         new StateVariable
         {
             Name = "IsFoldersSelected",
             Type = StateVariable.StateType.Input,
             Value = IsFoldersSelected.ToString()
         },
         new StateVariable
         {
             Name = "IsFilesAndFoldersSelected",
             Type = StateVariable.StateType.Input,
             Value = IsFilesAndFoldersSelected.ToString()
         },
         new StateVariable
         {
             Name = "IsRecursive",
             Type = StateVariable.StateType.Input,
             Value = IsRecursive.ToString()
         },
         new StateVariable
         {
             Name = "Result",
             Type = StateVariable.StateType.Output,
             Value = Result
         }
     });
 }
Beispiel #4
0
 public override IEnumerable <StateVariable> GetState()
 {
     return(new[]
     {
         new StateVariable
         {
             Name = "InputPath",
             Type = StateVariable.StateType.Input,
             Value = InputPath
         },
         new StateVariable
         {
             Name = "IsFilesSelected",
             Type = StateVariable.StateType.Input,
             Value = IsFilesSelected.ToString()
         },
         new StateVariable
         {
             Name = "IsFoldersSelected",
             Type = StateVariable.StateType.Input,
             Value = IsFoldersSelected.ToString()
         },
         new StateVariable
         {
             Name = "IsFilesAndFoldersSelected",
             Type = StateVariable.StateType.Input,
             Value = IsFilesAndFoldersSelected.ToString()
         },
         new StateVariable
         {
             Name = "Username",
             Type = StateVariable.StateType.Input,
             Value = Username
         },
         new StateVariable
         {
             Name = "PrivateKeyFile",
             Type = StateVariable.StateType.Input,
             Value = PrivateKeyFile
         },
         new StateVariable
         {
             Name = "Result",
             Type = StateVariable.StateType.Output,
             Value = Result
         }
     });
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = base.GetHashCode();
         hashCode = (hashCode * 397) ^ (SelectedSource != null ? SelectedSource.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Files != null ? Files.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IncludeMediaInfo.GetHashCode();
         hashCode = (hashCode * 397) ^ IsRecursive.GetHashCode();
         hashCode = (hashCode * 397) ^ IncludeDeleted.GetHashCode();
         hashCode = (hashCode * 397) ^ (ToPath != null ? ToPath.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DisplayName != null ? DisplayName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsFilesSelected.GetHashCode();
         hashCode = (hashCode * 397) ^ IsFoldersSelected.GetHashCode();
         hashCode = (hashCode * 397) ^ IsFilesAndFoldersSelected.GetHashCode();
         return(hashCode);
     }
 }
 public override IEnumerable <StateVariable> GetState()
 {
     return(new[]
     {
         new StateVariable
         {
             Name = "SharepointServerResourceId",
             Type = StateVariable.StateType.Input,
             Value = SharepointServerResourceId.ToString()
         },
         new StateVariable
         {
             Name = "ServerInputPath",
             Type = StateVariable.StateType.Input,
             Value = ServerInputPath
         },
         new StateVariable
         {
             Name = "IsFilesAndFoldersSelected",
             Type = StateVariable.StateType.Input,
             Value = IsFilesAndFoldersSelected.ToString()
         },
         new StateVariable
         {
             Name = "IsFoldersSelected",
             Type = StateVariable.StateType.Input,
             Value = IsFoldersSelected.ToString()
         },
         new StateVariable
         {
             Name = "IsFilesSelected",
             Type = StateVariable.StateType.Input,
             Value = IsFilesSelected.ToString()
         }
         ,
         new StateVariable
         {
             Name = "Result",
             Type = StateVariable.StateType.Output,
             Value = Result
         }
     });
 }