Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new operation descriptor data and adds it to this entity descriptor data
        /// </summary>
        /// <param name="metadata">The metadata of the action.</param>
        /// <param name="target">The target of the action.</param>
        /// <param name="title">The title of the action.</param>
        /// <param name="isAction">Whether it's action or function.</param>
        /// <returns>The operation descriptor data</returns>
        public OperationDescriptorData CreateOperationDescriptorData(Uri metadata, Uri target, string title, bool isAction)
        {
            var operationDescriptorData = new OperationDescriptorData(metadata, target, title, isAction);

            this.operationDescriptors.Add(operationDescriptorData);

            return(operationDescriptorData);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns another OperationDescriptorData with equivalent values but no references to the current instance
 /// </summary>
 /// <returns>A cloned OperationDescriptorData</returns>
 public OperationDescriptorData Clone()
 {
     var clone = new OperationDescriptorData(this.Metadata, this.Target, this.Title, this.IsAction);
     return clone;
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Creates a new operation descriptor data and adds it to this entity descriptor data
        /// </summary>
        /// <param name="metadata">The metadata of the action.</param>
        /// <param name="target">The target of the action.</param>
        /// <param name="title">The title of the action.</param>
        /// <param name="isAction">Whether it's action or function.</param>
        /// <returns>The operation descriptor data</returns>
        public OperationDescriptorData CreateOperationDescriptorData(Uri metadata, Uri target, string title, bool isAction)
        {
            var operationDescriptorData = new OperationDescriptorData(metadata, target, title, isAction);

            this.operationDescriptors.Add(operationDescriptorData);

            return operationDescriptorData;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Returns another OperationDescriptorData with equivalent values but no references to the current instance
        /// </summary>
        /// <returns>A cloned OperationDescriptorData</returns>
        public OperationDescriptorData Clone()
        {
            var clone = new OperationDescriptorData(this.Metadata, this.Target, this.Title, this.IsAction);

            return(clone);
        }