コード例 #1
0
        private void Node_ActionTaken(object sender, ActionEventArgs e)
        {
            DistributionAction action = (DistributionAction)e.Action;

            UpdateDistributionAction(action);
            RaiseActionTakenEvent(action);
        }
コード例 #2
0
 public DTODistributionAction(DistributionAction distributionAction)
 {
     Type = distributionAction.Type;
     SourceMachineHostName = distributionAction.SourceMachine.HostName;
     GroupID       = distributionAction.Group.ID;
     ApplicationID = distributionAction.Application.ID;
     DestinationMachineHostName = distributionAction.DestinationMachine.HostName;
 }
 public DistributionValidationError(JToken node) : base(node)
 {
     if (node["action"] != null)
     {
         this._Action = (DistributionAction)ParseEnum(typeof(DistributionAction), node["action"].Value <string>());
     }
     if (node["errorType"] != null)
     {
         this._ErrorType = (DistributionErrorType)ParseEnum(typeof(DistributionErrorType), node["errorType"].Value <string>());
     }
     if (node["description"] != null)
     {
         this._Description = node["description"].Value <string>();
     }
 }
        public GenericDistributionProviderActionBaseFilter(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "idEqual":
                    this._IdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "idIn":
                    this._IdIn = propertyNode.InnerText;
                    continue;

                case "createdAtGreaterThanOrEqual":
                    this._CreatedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "createdAtLessThanOrEqual":
                    this._CreatedAtLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAtGreaterThanOrEqual":
                    this._UpdatedAtGreaterThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAtLessThanOrEqual":
                    this._UpdatedAtLessThanOrEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "genericDistributionProviderIdEqual":
                    this._GenericDistributionProviderIdEqual = ParseInt(propertyNode.InnerText);
                    continue;

                case "genericDistributionProviderIdIn":
                    this._GenericDistributionProviderIdIn = propertyNode.InnerText;
                    continue;

                case "actionEqual":
                    this._ActionEqual = (DistributionAction)ParseEnum(typeof(DistributionAction), propertyNode.InnerText);
                    continue;

                case "actionIn":
                    this._ActionIn = propertyNode.InnerText;
                    continue;
                }
            }
        }
コード例 #5
0
 public GenericDistributionProviderActionBaseFilter(JToken node) : base(node)
 {
     if (node["idEqual"] != null)
     {
         this._IdEqual = ParseInt(node["idEqual"].Value <string>());
     }
     if (node["idIn"] != null)
     {
         this._IdIn = node["idIn"].Value <string>();
     }
     if (node["createdAtGreaterThanOrEqual"] != null)
     {
         this._CreatedAtGreaterThanOrEqual = ParseInt(node["createdAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["createdAtLessThanOrEqual"] != null)
     {
         this._CreatedAtLessThanOrEqual = ParseInt(node["createdAtLessThanOrEqual"].Value <string>());
     }
     if (node["updatedAtGreaterThanOrEqual"] != null)
     {
         this._UpdatedAtGreaterThanOrEqual = ParseInt(node["updatedAtGreaterThanOrEqual"].Value <string>());
     }
     if (node["updatedAtLessThanOrEqual"] != null)
     {
         this._UpdatedAtLessThanOrEqual = ParseInt(node["updatedAtLessThanOrEqual"].Value <string>());
     }
     if (node["genericDistributionProviderIdEqual"] != null)
     {
         this._GenericDistributionProviderIdEqual = ParseInt(node["genericDistributionProviderIdEqual"].Value <string>());
     }
     if (node["genericDistributionProviderIdIn"] != null)
     {
         this._GenericDistributionProviderIdIn = node["genericDistributionProviderIdIn"].Value <string>();
     }
     if (node["actionEqual"] != null)
     {
         this._ActionEqual = (DistributionAction)ParseEnum(typeof(DistributionAction), node["actionEqual"].Value <string>());
     }
     if (node["actionIn"] != null)
     {
         this._ActionIn = node["actionIn"].Value <string>();
     }
 }
        public DistributionValidationError(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "action":
                    this._Action = (DistributionAction)ParseEnum(typeof(DistributionAction), propertyNode.InnerText);
                    continue;

                case "errorType":
                    this._ErrorType = (DistributionErrorType)ParseEnum(typeof(DistributionErrorType), propertyNode.InnerText);
                    continue;

                case "description":
                    this._Description = propertyNode.InnerText;
                    continue;
                }
            }
        }
コード例 #7
0
 public GenericDistributionProviderAction(JToken node) : base(node)
 {
     if (node["id"] != null)
     {
         this._Id = ParseInt(node["id"].Value <string>());
     }
     if (node["createdAt"] != null)
     {
         this._CreatedAt = ParseInt(node["createdAt"].Value <string>());
     }
     if (node["updatedAt"] != null)
     {
         this._UpdatedAt = ParseInt(node["updatedAt"].Value <string>());
     }
     if (node["genericDistributionProviderId"] != null)
     {
         this._GenericDistributionProviderId = ParseInt(node["genericDistributionProviderId"].Value <string>());
     }
     if (node["action"] != null)
     {
         this._Action = (DistributionAction)ParseEnum(typeof(DistributionAction), node["action"].Value <string>());
     }
     if (node["status"] != null)
     {
         this._Status = (GenericDistributionProviderStatus)ParseEnum(typeof(GenericDistributionProviderStatus), node["status"].Value <string>());
     }
     if (node["resultsParser"] != null)
     {
         this._ResultsParser = (GenericDistributionProviderParser)ParseEnum(typeof(GenericDistributionProviderParser), node["resultsParser"].Value <string>());
     }
     if (node["protocol"] != null)
     {
         this._Protocol = (DistributionProtocol)ParseEnum(typeof(DistributionProtocol), node["protocol"].Value <string>());
     }
     if (node["serverAddress"] != null)
     {
         this._ServerAddress = node["serverAddress"].Value <string>();
     }
     if (node["remotePath"] != null)
     {
         this._RemotePath = node["remotePath"].Value <string>();
     }
     if (node["remoteUsername"] != null)
     {
         this._RemoteUsername = node["remoteUsername"].Value <string>();
     }
     if (node["remotePassword"] != null)
     {
         this._RemotePassword = node["remotePassword"].Value <string>();
     }
     if (node["editableFields"] != null)
     {
         this._EditableFields = node["editableFields"].Value <string>();
     }
     if (node["mandatoryFields"] != null)
     {
         this._MandatoryFields = node["mandatoryFields"].Value <string>();
     }
     if (node["mrssTransformer"] != null)
     {
         this._MrssTransformer = node["mrssTransformer"].Value <string>();
     }
     if (node["mrssValidator"] != null)
     {
         this._MrssValidator = node["mrssValidator"].Value <string>();
     }
     if (node["resultsTransformer"] != null)
     {
         this._ResultsTransformer = node["resultsTransformer"].Value <string>();
     }
 }
コード例 #8
0
        public GenericDistributionProviderAction(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "id":
                    this._Id = ParseInt(propertyNode.InnerText);
                    continue;

                case "createdAt":
                    this._CreatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "updatedAt":
                    this._UpdatedAt = ParseInt(propertyNode.InnerText);
                    continue;

                case "genericDistributionProviderId":
                    this._GenericDistributionProviderId = ParseInt(propertyNode.InnerText);
                    continue;

                case "action":
                    this._Action = (DistributionAction)ParseEnum(typeof(DistributionAction), propertyNode.InnerText);
                    continue;

                case "status":
                    this._Status = (GenericDistributionProviderStatus)ParseEnum(typeof(GenericDistributionProviderStatus), propertyNode.InnerText);
                    continue;

                case "resultsParser":
                    this._ResultsParser = (GenericDistributionProviderParser)ParseEnum(typeof(GenericDistributionProviderParser), propertyNode.InnerText);
                    continue;

                case "protocol":
                    this._Protocol = (DistributionProtocol)ParseEnum(typeof(DistributionProtocol), propertyNode.InnerText);
                    continue;

                case "serverAddress":
                    this._ServerAddress = propertyNode.InnerText;
                    continue;

                case "remotePath":
                    this._RemotePath = propertyNode.InnerText;
                    continue;

                case "remoteUsername":
                    this._RemoteUsername = propertyNode.InnerText;
                    continue;

                case "remotePassword":
                    this._RemotePassword = propertyNode.InnerText;
                    continue;

                case "editableFields":
                    this._EditableFields = propertyNode.InnerText;
                    continue;

                case "mandatoryFields":
                    this._MandatoryFields = propertyNode.InnerText;
                    continue;

                case "mrssTransformer":
                    this._MrssTransformer = propertyNode.InnerText;
                    continue;

                case "mrssValidator":
                    this._MrssValidator = propertyNode.InnerText;
                    continue;

                case "resultsTransformer":
                    this._ResultsTransformer = propertyNode.InnerText;
                    continue;
                }
            }
        }
コード例 #9
0
 protected override void UpdateDistributionAction(DistributionAction action)
 {
     action.Application = Application;
 }
 public static GenericDistributionProviderActionUpdateByProviderIdRequestBuilder UpdateByProviderId(int genericDistributionProviderId, DistributionAction actionType, GenericDistributionProviderAction genericDistributionProviderAction)
 {
     return(new GenericDistributionProviderActionUpdateByProviderIdRequestBuilder(genericDistributionProviderId, actionType, genericDistributionProviderAction));
 }
 public static GenericDistributionProviderActionGetByProviderIdRequestBuilder GetByProviderId(int genericDistributionProviderId, DistributionAction actionType)
 {
     return(new GenericDistributionProviderActionGetByProviderIdRequestBuilder(genericDistributionProviderId, actionType));
 }
 public GenericDistributionProviderActionUpdateByProviderIdRequestBuilder(int genericDistributionProviderId, DistributionAction actionType, GenericDistributionProviderAction genericDistributionProviderAction)
     : this()
 {
     this.GenericDistributionProviderId = genericDistributionProviderId;
     this.ActionType = actionType;
     this.GenericDistributionProviderAction = genericDistributionProviderAction;
 }
 public GenericDistributionProviderActionGetByProviderIdRequestBuilder(int genericDistributionProviderId, DistributionAction actionType)
     : this()
 {
     this.GenericDistributionProviderId = genericDistributionProviderId;
     this.ActionType = actionType;
 }
コード例 #14
0
 protected override void UpdateDistributionAction(DistributionAction action)
 {
     action.Group = Group;
 }
コード例 #15
0
 protected override void UpdateDistributionAction(DistributionAction action)
 {
     action.SourceMachine = Machine;
 }
コード例 #16
0
 protected virtual void UpdateDistributionAction(DistributionAction action)
 {
     throw new InvalidOperationException("Class must be inherited!");
 }