Exemple #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);
     }
 }
Exemple #3
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 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
         }
     });
 }