Class InterestHelperFactory
Implements
Inherited Members
Namespace: SuperOffice.CRM.Entities
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public class InterestHelperFactory : IInterestHelperFactory
Constructors
InterestHelperFactory(IServiceProvider)
Declaration
public InterestHelperFactory(IServiceProvider serviceProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceProvider | serviceProvider |
Methods
CreateAsync<T>(T, int, CancellationToken)
Instantiates a class that inherits IInterestHelper. The class is picked based on a given type of linkRows object. Please check currently supported linkRows types on the implementation of this method.
Declaration
public Task<IInterestHelper> CreateAsync<T>(T linkRows, int id, CancellationToken cancellationToken = default) where T : TableRowsBase
Parameters
| Type | Name | Description |
|---|---|---|
| T | linkRows | Supported linkRows object. |
| int | id | Entity Id. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<IInterestHelper> | Class inheriting IInterestHelper |
Type Parameters
| Name | Description |
|---|---|
| T |