C# Class NSwag.Integration.Console.PersonsClient

Mostra file Open project: NSwag/NSwag Class Usage Examples

Public Methods

Method Description
AddAsync ( Person person ) : System.Threading.Tasks.Task
AddAsync ( Person person, System cancellationToken ) : System.Threading.Tasks.Task
DeleteAsync ( System id ) : System.Threading.Tasks.Task
DeleteAsync ( System id, System cancellationToken ) : System.Threading.Tasks.Task
Find2Async ( Gender gender ) : System.Threading.Tasks.Task>
Find2Async ( Gender gender, System cancellationToken ) : System.Threading.Tasks.Task>
FindAsync ( Gender gender ) : System.Threading.Tasks.Task>
FindAsync ( Gender gender, System cancellationToken ) : System.Threading.Tasks.Task>
GetAllAsync ( ) : System.Threading.Tasks.Task>
GetAllAsync ( System cancellationToken ) : System.Threading.Tasks.Task>
GetAsync ( System id ) : System.Threading.Tasks.Task
GetAsync ( System id, System cancellationToken ) : System.Threading.Tasks.Task
GetNameAsync ( System id ) : System.Threading.Tasks.Task

Gets the name of a person.

GetNameAsync ( System id, System cancellationToken ) : System.Threading.Tasks.Task

Gets the name of a person.

ThrowAsync ( System id ) : System.Threading.Tasks.Task
ThrowAsync ( System id, System cancellationToken ) : System.Threading.Tasks.Task

Private Methods

Method Description
PrepareRequest ( System request, string &url ) : void
ProcessResponse ( System request, System response ) : void

Method Details

AddAsync() public method

A server side error occurred.
public AddAsync ( Person person ) : System.Threading.Tasks.Task
person NSwag.Integration.Console.Contracts.Person
return System.Threading.Tasks.Task

AddAsync() public method

A server side error occurred.
public AddAsync ( Person person, System cancellationToken ) : System.Threading.Tasks.Task
person NSwag.Integration.Console.Contracts.Person
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
return System.Threading.Tasks.Task

DeleteAsync() public method

A server side error occurred.
public DeleteAsync ( System id ) : System.Threading.Tasks.Task
id System
return System.Threading.Tasks.Task

DeleteAsync() public method

A server side error occurred.
public DeleteAsync ( System id, System cancellationToken ) : System.Threading.Tasks.Task
id System
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
return System.Threading.Tasks.Task

Find2Async() public method

A server side error occurred.
public Find2Async ( Gender gender ) : System.Threading.Tasks.Task>
gender Gender
return System.Threading.Tasks.Task>

Find2Async() public method

A server side error occurred.
public Find2Async ( Gender gender, System cancellationToken ) : System.Threading.Tasks.Task>
gender Gender
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
return System.Threading.Tasks.Task>

FindAsync() public method

A server side error occurred.
public FindAsync ( Gender gender ) : System.Threading.Tasks.Task>
gender Gender
return System.Threading.Tasks.Task>

FindAsync() public method

A server side error occurred.
public FindAsync ( Gender gender, System cancellationToken ) : System.Threading.Tasks.Task>
gender Gender
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
return System.Threading.Tasks.Task>

GetAllAsync() public method

A server side error occurred.
public GetAllAsync ( ) : System.Threading.Tasks.Task>
return System.Threading.Tasks.Task>

GetAllAsync() public method

A server side error occurred.
public GetAllAsync ( System cancellationToken ) : System.Threading.Tasks.Task>
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
return System.Threading.Tasks.Task>

GetAsync() public method

A server side error occurred.
public GetAsync ( System id ) : System.Threading.Tasks.Task
id System
return System.Threading.Tasks.Task

GetAsync() public method

A server side error occurred.
public GetAsync ( System id, System cancellationToken ) : System.Threading.Tasks.Task
id System
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
return System.Threading.Tasks.Task

GetNameAsync() public method

Gets the name of a person.
A server side error occurred.
public GetNameAsync ( System id ) : System.Threading.Tasks.Task
id System The person ID.
return System.Threading.Tasks.Task

GetNameAsync() public method

Gets the name of a person.
A server side error occurred.
public GetNameAsync ( System id, System cancellationToken ) : System.Threading.Tasks.Task
id System The person ID.
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
return System.Threading.Tasks.Task

ThrowAsync() public method

A server side error occurred.
public ThrowAsync ( System id ) : System.Threading.Tasks.Task
id System
return System.Threading.Tasks.Task

ThrowAsync() public method

A server side error occurred.
public ThrowAsync ( System id, System cancellationToken ) : System.Threading.Tasks.Task
id System
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
return System.Threading.Tasks.Task