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.
|
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. |