Show / Hide Table of Contents

Class StartupBase

Base class for the ASP.NET startup.

Inheritance
System.Object
AppBase
StartupBase
Inherited Members
AppBase.AmbientServices
AppBase.AppContext
AppBase.Logger
AppBase.BootstrapAsync(String[], CancellationToken)
AppBase.InitializePrerequisites(String[])
AppBase.WaitForShutdownSignalAsync(CancellationToken)
AppBase.OnCurrentDomainUnhandledException(Object, UnhandledExceptionEventArgs)
AppBase.ConfigureAmbientServices(IAmbientServices)
AppBase.InitializeAppManagerAsync(IAppContext, CancellationToken)
AppBase.FinalizeAppManagerAsync(CancellationToken)
AppBase.Log(LogLevel, Exception, String, Object[])
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Application.AspNetCore
Assembly: Kephas.Application.AspNetCore.dll
Syntax
public abstract class StartupBase : AppBase
Remarks

Check https://docs.microsoft.com/en-us/aspnet/core/fundamentals/startup?view=aspnetcore-2.1 for more options.

Constructors

| Improve this Doc View Source

StartupBase(IHostingEnvironment, IConfiguration, IAmbientServices, String[])

Initializes a new instance of the StartupBase class.

Declaration
protected StartupBase(IHostingEnvironment env, IConfiguration config, IAmbientServices ambientServices = null, string[] appArgs = null)
Parameters
Type Name Description
Microsoft.AspNetCore.Hosting.IHostingEnvironment env

The environment.

Microsoft.Extensions.Configuration.IConfiguration config

The configuration.

IAmbientServices ambientServices

Optional. The ambient services.

System.String[] appArgs

Optional. The application arguments.

Properties

| Improve this Doc View Source

Configuration

Gets the configuration.

Declaration
public IConfiguration Configuration { get; }
Property Value
Type Description
Microsoft.Extensions.Configuration.IConfiguration

The configuration.

| Improve this Doc View Source

HostingEnvironment

Gets the hosting environment.

Declaration
public IHostingEnvironment HostingEnvironment { get; }
Property Value
Type Description
Microsoft.AspNetCore.Hosting.IHostingEnvironment

The hosting environment.

Methods

| Improve this Doc View Source

Configure(IApplicationBuilder, IApplicationLifetime)

Configures the given application.

Declaration
public virtual void Configure(IApplicationBuilder app, IApplicationLifetime appLifetime)
Parameters
Type Name Description
Microsoft.AspNetCore.Builder.IApplicationBuilder app

The application builder.

Microsoft.AspNetCore.Hosting.IApplicationLifetime appLifetime

The application lifetime.

| Improve this Doc View Source

ConfigureServices(IServiceCollection)

Configures the DI services.

Declaration
public virtual IServiceProvider ConfigureServices(IServiceCollection serviceCollection)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection

Collection of services.

Returns
Type Description
System.IServiceProvider

An IServiceProvider.

| Improve this Doc View Source

CreateAppContext(IAmbientServices)

Creates the application context.

Declaration
protected override IAppContext CreateAppContext(IAmbientServices ambientServices)
Parameters
Type Name Description
IAmbientServices ambientServices

The ambient services.

Returns
Type Description
IAppContext

The new application context.

Overrides
AppBase.CreateAppContext(IAmbientServices)
| Improve this Doc View Source

ShutdownAsync(CancellationToken)

Shuts down the application asynchronously and gracefully.

Declaration
public override Task<IAppContext> ShutdownAsync(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken

Optional. The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<IAppContext>

A promise of the IAppContext.

Overrides
AppBase.ShutdownAsync(CancellationToken)

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX