Build() public method

The build.
public Build ( System.Operation provided = null ) : System.Operation
provided System.Operation
return System.Operation
 /// <summary>
 /// Defines the operation for the path and method;
 /// </summary>
 /// <param name="operation">
 /// The operation.
 /// </param>
 /// <returns>
 /// The <see cref="PathItemBuilder"/>.
 /// </returns>
 public PathItemBuilder Operation(Action<OperationBuilder> action)
 {
     var builder = new OperationBuilder();
     action(builder);
     builder.Build(this.operation);
     return this;
 }
        /// <summary>
        /// Defines the operation for the path and method;
        /// </summary>
        /// <param name="operation">
        /// The operation.
        /// </param>
        /// <returns>
        /// The <see cref="PathItemBuilder"/>.
        /// </returns>
        public PathItemBuilder Operation(Action <OperationBuilder> action)
        {
            var builder = new OperationBuilder();

            action(builder);
            builder.Build(this.operation);
            return(this);
        }
Example #3
0
 /// <summary>
 /// Add a parameter for this operation
 /// </summary>
 /// <param name="op">The Operation Builder</param>
 /// <returns>
 /// The <see cref="PathItemBuilder"/>.
 /// </returns>
 public PathItemBuilder Operation(OperationBuilder op)
 {
     op.Build(this.operation);
     return(this);
 }