Class MicrosoftUpdateContentController
ASP.NET controller; handles web requests for Microsoft Update content.
When added to a ASP.NETCore instance, routes and handles requests for Microsoft Update content
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Microsoft.AspNetCore.Mvc.Controller
MicrosoftUpdateContentController
Implements
Microsoft.AspNetCore.Mvc.Filters.IActionFilter
Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
System.IDisposable
Namespace: Microsoft.PackageGraph.MicrosoftUpdate.Endpoints.Content
Assembly: package-graph-endpoints-microsoft-update.dll
Syntax
public class MicrosoftUpdateContentController : Controller, IActionFilter, IAsyncActionFilter, IFilterMetadata, IDisposable
Constructors
| Improve this Doc View SourceMicrosoftUpdateContentController(IContentStore, ILoggerFactory)
Create a new Microsoft Update content controller from the specified content store
Declaration
public MicrosoftUpdateContentController(IContentStore contentStore, ILoggerFactory loggerFactory)
Parameters
Type | Name | Description |
---|---|---|
IContentStore | contentStore | The content store that has the update content |
Microsoft.Extensions.Logging.ILoggerFactory | loggerFactory | Logger factory |
Methods
| Improve this Doc View SourceGetMicrosoftUpdateContent(String)
Handles HTTP GET requests for update content.
Declaration
[HttpGet]
public IActionResult GetMicrosoftUpdateContent(string contentHash)
Parameters
Type | Name | Description |
---|---|---|
System.String | contentHash | The hash of the content being requested |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Mvc.IActionResult | Standard HTTP action result |
GetMicrosoftUpdateContentHead(String)
Handles HTTP HEAD request for update content. HEAD requests are send by clients to discover the size of the update content before proceeding with the download
Declaration
[HttpHead]
public void GetMicrosoftUpdateContentHead(string contentHash)
Parameters
Type | Name | Description |
---|---|---|
System.String | contentHash |
Implements
Microsoft.AspNetCore.Mvc.Filters.IActionFilter
Microsoft.AspNetCore.Mvc.Filters.IAsyncActionFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata
System.IDisposable