Show / Hide Table of Contents

Class ApiServiceArgs<TLoggerCategory>

Encapsulates the properties to initialize a new ApiService.

Inheritance
System.Object
ApiServiceArgs<TLoggerCategory>
ApiServiceArgsEF<TLoggerCategory, TDbContext>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Celerik.NetCore.Services
Assembly: cs.temp.dll.dll
Syntax
public class ApiServiceArgs<TLoggerCategory>
Type Parameters
Name Description
TLoggerCategory

The type who's name is used for the logger category name.

Constructors

ApiServiceArgs(IServiceProvider, IConfiguration, IStringLocalizerFactory, ILogger<TLoggerCategory>, IMapper, IHttpContextAccessor)

Initializes a new instance of the class.

Declaration
public ApiServiceArgs(IServiceProvider serviceProvider, IConfiguration config, IStringLocalizerFactory stringLocalizerFactory, ILogger<TLoggerCategory> logger, IMapper mapper, IHttpContextAccessor httpContextAccessor)
Parameters
Type Name Description
IServiceProvider serviceProvider

Reference to the current IServiceProvider instance.

IConfiguration config

Reference to the current IConfiguration instance.

IStringLocalizerFactory stringLocalizerFactory

Reference to the current IStringLocalizerFactory.

ILogger<TLoggerCategory> logger

Reference to the current ILogger instance.

IMapper mapper

Reference to the current IMapper instance.

IHttpContextAccessor httpContextAccessor

Reference to the current IHttpContextAccessor instance.

Properties

Config

Reference to the current IConfiguration instance.

Declaration
public IConfiguration Config { get; }
Property Value
Type Description
IConfiguration

HttpContextAccessor

Reference to the current IHttpContextAccessor instance.

Declaration
public IHttpContextAccessor HttpContextAccessor { get; }
Property Value
Type Description
IHttpContextAccessor

Logger

Reference to the current ILogger instance.

Declaration
public ILogger<TLoggerCategory> Logger { get; }
Property Value
Type Description
ILogger<TLoggerCategory>

Mapper

Reference to the current IMapper instance.

Declaration
public IMapper Mapper { get; }
Property Value
Type Description
IMapper

ServiceProvider

Reference to the current IServiceProvider instance.

Declaration
public IServiceProvider ServiceProvider { get; }
Property Value
Type Description
IServiceProvider

StringLocalizerFactory

Factory to create IStringLocalizer objects.

Declaration
public IStringLocalizerFactory StringLocalizerFactory { get; }
Property Value
Type Description
IStringLocalizerFactory
In This Article
Back to top Generated by DocFX