Show / Hide Table of Contents

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 Source

MicrosoftUpdateContentController(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 Source

GetMicrosoftUpdateContent(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

| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX