Show / Hide Table of Contents

Class ServiceCollectionApplicationExtensions

Inheritance
object
ServiceCollectionApplicationExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: Volo.Abp.Core.dll
Syntax
public static class ServiceCollectionApplicationExtensions

Methods

AddApplication(IServiceCollection, Type, Action<AbpApplicationCreationOptions>?)

Declaration
public static IAbpApplicationWithExternalServiceProvider AddApplication(this IServiceCollection services, Type startupModuleType, Action<AbpApplicationCreationOptions>? optionsAction = null)
Parameters
Type Name Description
IServiceCollection services
Type startupModuleType
Action<AbpApplicationCreationOptions> optionsAction
Returns
Type Description
IAbpApplicationWithExternalServiceProvider

AddApplicationAsync(IServiceCollection, Type, Action<AbpApplicationCreationOptions>?)

Declaration
public static Task<IAbpApplicationWithExternalServiceProvider> AddApplicationAsync(this IServiceCollection services, Type startupModuleType, Action<AbpApplicationCreationOptions>? optionsAction = null)
Parameters
Type Name Description
IServiceCollection services
Type startupModuleType
Action<AbpApplicationCreationOptions> optionsAction
Returns
Type Description
Task<IAbpApplicationWithExternalServiceProvider>

AddApplicationAsync<TStartupModule>(IServiceCollection, Action<AbpApplicationCreationOptions>?)

Declaration
public static Task<IAbpApplicationWithExternalServiceProvider> AddApplicationAsync<TStartupModule>(this IServiceCollection services, Action<AbpApplicationCreationOptions>? optionsAction = null) where TStartupModule : IAbpModule
Parameters
Type Name Description
IServiceCollection services
Action<AbpApplicationCreationOptions> optionsAction
Returns
Type Description
Task<IAbpApplicationWithExternalServiceProvider>
Type Parameters
Name Description
TStartupModule

AddApplication<TStartupModule>(IServiceCollection, Action<AbpApplicationCreationOptions>?)

Declaration
public static IAbpApplicationWithExternalServiceProvider AddApplication<TStartupModule>(this IServiceCollection services, Action<AbpApplicationCreationOptions>? optionsAction = null) where TStartupModule : IAbpModule
Parameters
Type Name Description
IServiceCollection services
Action<AbpApplicationCreationOptions> optionsAction
Returns
Type Description
IAbpApplicationWithExternalServiceProvider
Type Parameters
Name Description
TStartupModule

GetAbpHostEnvironment(IServiceCollection)

Declaration
public static IAbpHostEnvironment GetAbpHostEnvironment(this IServiceCollection services)
Parameters
Type Name Description
IServiceCollection services
Returns
Type Description
IAbpHostEnvironment

GetApplicationInstanceId(IServiceCollection)

Declaration
public static string GetApplicationInstanceId(this IServiceCollection services)
Parameters
Type Name Description
IServiceCollection services
Returns
Type Description
string

GetApplicationName(IServiceCollection)

Declaration
public static string? GetApplicationName(this IServiceCollection services)
Parameters
Type Name Description
IServiceCollection services
Returns
Type Description
string
In this article
Back to top Powered by Volosoft