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
WithAsyncEvaluationVisitorFactory<TAsyncEvaluationVisitorFactory>()
public NCalcServiceBuilder WithAsyncEvaluationVisitorFactory<TAsyncEvaluationVisitorFactory>() where TAsyncEvaluationVisitorFactory : class, IAsyncEvaluationVisitorFactory
Returns
- NCalcServiceBuilder
Type Parameters
TAsyncEvaluationVisitorFactory
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
WithEvaluationVisitorFactory<TEvaluationVisitorFactory>()
public NCalcServiceBuilder WithEvaluationVisitorFactory<TEvaluationVisitorFactory>() where TEvaluationVisitorFactory : class, IEvaluationVisitorFactory
Returns
- NCalcServiceBuilder
Type Parameters
TEvaluationVisitorFactory
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