Class NCalcServiceBuilder
- Namespace
- NCalc.DependencyInjection
- Assembly
- NCalc.DependencyInjection.dll
public class NCalcServiceBuilder
- Inheritance
-
NCalcServiceBuilder
- Inherited Members
-
- Extension Methods
-
Constructors
NCalcServiceBuilder(IServiceCollection)
public NCalcServiceBuilder(IServiceCollection services)
Parameters
services
IServiceCollection
Properties
Services
public IServiceCollection Services { get; }
Property Value
- IServiceCollection
Methods
WithAsyncEvaluationService<TAsyncEvaluationService>()
public NCalcServiceBuilder WithAsyncEvaluationService<TAsyncEvaluationService>() where TAsyncEvaluationService : class, IAsyncEvaluationService
Returns
- NCalcServiceBuilder
Type Parameters
TAsyncEvaluationService
WithAsyncExpressionFactory<TAsyncExpressionFactory>()
public NCalcServiceBuilder WithAsyncExpressionFactory<TAsyncExpressionFactory>() where TAsyncExpressionFactory : class, IAsyncExpressionFactory
Returns
- NCalcServiceBuilder
Type Parameters
TAsyncExpressionFactory
WithCache<TCache>()
public NCalcServiceBuilder WithCache<TCache>() where TCache : class, ILogicalExpressionCache
Returns
- NCalcServiceBuilder
Type Parameters
TCache
WithEvaluationService<TEvaluationService>()
public NCalcServiceBuilder WithEvaluationService<TEvaluationService>() where TEvaluationService : class, IEvaluationService
Returns
- NCalcServiceBuilder
Type Parameters
TEvaluationService
WithExpressionFactory<TExpressionFactory>()
public NCalcServiceBuilder WithExpressionFactory<TExpressionFactory>() where TExpressionFactory : class, IExpressionFactory
Returns
- NCalcServiceBuilder
Type Parameters
TExpressionFactory
WithLogicalExpressionFactory<TLogicalExpressionFactory>()
public NCalcServiceBuilder WithLogicalExpressionFactory<TLogicalExpressionFactory>() where TLogicalExpressionFactory : class, ILogicalExpressionFactory
Returns
- NCalcServiceBuilder
Type Parameters
TLogicalExpressionFactory