Show / Hide Table of Contents

Class UpdateServerStartup

Startup class for a ASP.NET Core web service that implements the Client-Server sync protocol.

A web service started with UpdateServerStartup acts as an update server to Windows PCs.

Inheritance
System.Object
UpdateServerStartup
Namespace: Microsoft.UpdateServices.ClientSync.Server
Assembly: client-server-sync-lib.dll
Syntax
public class UpdateServerStartup

Constructors

UpdateServerStartup(IConfiguration)

Initialize a new instance of UpdateServerStartup.

Declaration
public UpdateServerStartup(IConfiguration config)
Parameters
Type Name Description
Microsoft.Extensions.Configuration.IConfiguration config

ASP.NET configuration.

  • Required: string entry "metadata-source" with the path to file containing updates metadata.
  • Required: string entry "server-config" containing the server configuration in JSON format. A reference server configuration file is provided.
  • Optional: string entry "content-source" containing the path where update content is stored.
  • Optional: string entry "content-http-root" with the root URL where update content is serverd from (e.g. http://my-update-server.com). Usually this set to the address/name of the server. Required if "content-source" is specified.

Methods

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

Applicatin to configure.

A SOAP endpoint is configured for this app.

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.

Back to top Generated by DocFX