Hexarc.Pact.Protocol by Max Koverdyaev

<PackageReference Include="Hexarc.Pact.Protocol" Version="1.1.2" />

 Method

public sealed class Method
Contains information about an API endpoint method.
public HttpMethod HttpMethod { get; }

Gets the method HTTP verb.

public string Name { get; }

Gets the method name.

public MethodParameter[] Parameters { get; }

Gets the method parameters.

public string Path { get; }

Gets the method path.

public TaskTypeReference ReturnType { get; }

Gets the method return type.

public Method(string name, string path, HttpMethod httpMethod, TaskTypeReference returnType, MethodParameter[] parameters)

Creates an instance of the Method class.