Class UpdateServerStartup
Startup class for a ASP.NET Core web service that implements the Client-Server sync protocol. This startup runs a SOAP web service that serves updates to Windows Update clients
This startup configures the required SOAP adapter required for the SOAP based Client-Server sync protocol.
Inheritance
Namespace: Microsoft.PackageGraph.MicrosoftUpdate.Endpoints.ClientSync
Assembly: package-graph-endpoints-microsoft-update.dll
Syntax
public class UpdateServerStartup
Constructors
| Improve this Doc View SourceUpdateServerStartup(IConfiguration)
Creates the update server startup using the specified configuration an update metadata store
Declaration
public UpdateServerStartup(IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Configuration.IConfiguration | config | Startup configuration ASP.NET configuration. Must contain a string entry "metadata-path" with the path to the metadata source to use Must contain a string entry "service-config-json" with the service configuration JSON Can contain a string entry "content-path" with the path to the content store to use if serving update content |
Exceptions
Type | Condition |
---|---|
System.Exception | If the content store specified in the configuration cannot be opened |
Methods
| Improve this Doc View SourceConfigure(IApplicationBuilder, IHostingEnvironment, ILoggerFactory)
Called by ASP.NET to configure a web app's application pipeline
Declaration
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Builder.IApplicationBuilder | app | App builder to configure |
Microsoft.AspNetCore.Hosting.IHostingEnvironment | env | Hosting environment |
Microsoft.Extensions.Logging.ILoggerFactory | loggerFactory | Logging factory |
ConfigureServices(IServiceCollection)
Called by ASP.NET to configure services
Declaration
public void ConfigureServices(IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | Service collection. The client-server sync and simple authentication services are added to this list. |