Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the OperationEntityBaseContract
 /// class.
 /// </summary>
 /// <param name="templateParameters">Collection of URL template
 /// parameters.</param>
 /// <param name="description">Description of the operation. May include
 /// HTML formatting tags.</param>
 /// <param name="request">An entity containing request details.</param>
 /// <param name="responses">Array of Operation responses.</param>
 /// <param name="policies">Operation Policies</param>
 public OperationEntityBaseContract(IList <ParameterContract> templateParameters = default(IList <ParameterContract>), string description = default(string), RequestContract request = default(RequestContract), IList <ResponseContract> responses = default(IList <ResponseContract>), string policies = default(string))
 {
     TemplateParameters = templateParameters;
     Description        = description;
     Request            = request;
     Responses          = responses;
     Policies           = policies;
     CustomInit();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the OperationUpdateContract class.
 /// </summary>
 /// <param name="templateParameters">Collection of URL template
 /// parameters.</param>
 /// <param name="description">Description of the operation. May include
 /// HTML formatting tags.</param>
 /// <param name="request">An entity containing request details.</param>
 /// <param name="responses">Array of Operation responses.</param>
 /// <param name="policies">Operation Policies</param>
 /// <param name="displayName">Operation Name.</param>
 /// <param name="method">A Valid HTTP Operation Method. Typical Http
 /// Methods like GET, PUT, POST but not limited by only them.</param>
 /// <param name="urlTemplate">Relative URL template identifying the
 /// target resource for this operation. May include parameters.
 /// Example: /customers/{cid}/orders/{oid}/?date={date}</param>
 public OperationUpdateContract(IList <ParameterContract> templateParameters = default(IList <ParameterContract>), string description = default(string), RequestContract request = default(RequestContract), IList <ResponseContract> responses = default(IList <ResponseContract>), string policies = default(string), string displayName = default(string), string method = default(string), string urlTemplate = default(string))
 {
     TemplateParameters = templateParameters;
     Description        = description;
     Request            = request;
     Responses          = responses;
     Policies           = policies;
     DisplayName        = displayName;
     Method             = method;
     UrlTemplate        = urlTemplate;
     CustomInit();
 }