Пример #1
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
         }
     });
 }