C# Class NuGet.Services.BasicSearch.ResponseHelpers

Afficher le fichier Open project: NuGet/Entropy Class Usage Examples

Méthodes publiques

Méthode Description
WriteResponseAsync ( IOwinContext context, ClientException e ) : System.Threading.Tasks.Task
WriteResponseAsync ( IOwinContext context, Exception e, Microsoft.Extensions.Logging.ILogger logger ) : System.Threading.Tasks.Task
WriteResponseAsync ( IOwinContext context, HttpStatusCode statusCode, Action writeContent ) : System.Threading.Tasks.Task
WriteResponseAsync ( IOwinContext context, HttpStatusCode statusCode, JToken content ) : System.Threading.Tasks.Task

Private Methods

Méthode Description
WriteToStream ( Stream destination, Action writeContent ) : void

Method Details

WriteResponseAsync() public static méthode

public static WriteResponseAsync ( IOwinContext context, ClientException e ) : System.Threading.Tasks.Task
context IOwinContext
e NuGet.Indexing.ClientException
Résultat System.Threading.Tasks.Task

WriteResponseAsync() public static méthode

public static WriteResponseAsync ( IOwinContext context, Exception e, Microsoft.Extensions.Logging.ILogger logger ) : System.Threading.Tasks.Task
context IOwinContext
e System.Exception
logger Microsoft.Extensions.Logging.ILogger
Résultat System.Threading.Tasks.Task

WriteResponseAsync() public static méthode

public static WriteResponseAsync ( IOwinContext context, HttpStatusCode statusCode, Action writeContent ) : System.Threading.Tasks.Task
context IOwinContext
statusCode HttpStatusCode
writeContent Action
Résultat System.Threading.Tasks.Task

WriteResponseAsync() public static méthode

public static WriteResponseAsync ( IOwinContext context, HttpStatusCode statusCode, JToken content ) : System.Threading.Tasks.Task
context IOwinContext
statusCode HttpStatusCode
content JToken
Résultat System.Threading.Tasks.Task