Esempio n. 1
0
 /// <summary>
 /// Creates a new instance of the <see cref="OasLink"/> class.
 /// </summary>
 /// <param name="operationReference">The relative or absolute reference to an OAS operation.</param>
 /// <param name="operationIdentifier">The name of an existing, resolvable OAS operation, as defined with a unique operation identifier.</param>
 /// <param name="description">The description of the link.</param>
 /// <param name="server">The server object to be used by the target operation.</param>
 public OasLink(
     OasReference operationReference = default,
     string operationIdentifier      = default,
     string description = default,
     OasServer server   = default)
 {
     OperationReference  = operationReference;
     OperationIdentifier = operationIdentifier;
     Description         = description;
     Server = server;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new instance of the <see cref="OasLinkBuilder"/> class.
 /// </summary>
 /// <param name="value">The <see cref="OasLink"/> to copy values from.</param>
 public OasLinkBuilder(OasLink value)
 {
     if (value is null)
     {
         throw new ArgumentNullException(nameof(value));
     }
     OperationReference  = value.OperationReference;
     OperationIdentifier = value.OperationIdentifier;
     Description         = value.Description;
     Server = value.Server;
 }