C# Class NuGet.Services.BasicSearch.ResponseHelpers

Datei anzeigen Open project: NuGet/Entropy Class Usage Examples

Public Methods

Method 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

Method Description
WriteToStream ( Stream destination, Action writeContent ) : void

Method Details

WriteResponseAsync() public static method

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

WriteResponseAsync() public static method

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
return System.Threading.Tasks.Task

WriteResponseAsync() public static method

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

WriteResponseAsync() public static method

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