Class ReportAgent
Proxy class for the Report Agent Used when communicating remote using WebServices. Avoid using directly. Use the AgentFactory to create the proxy instead.
Inherited Members
Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.Implementation.dll
Syntax
public class ReportAgent : IReportAgent, IAgent
Constructors
ReportAgent(IReportLabelLayoutEntityImplementation, ISoRequestItemsAccessor)
Proxy class for the Report Agent Used when communicating remote using WebServices. Avoid using directly. Use the AgentFactory to create the proxy instead.
Declaration
public ReportAgent(IReportLabelLayoutEntityImplementation reportLabelLayoutEntityImplementation, ISoRequestItemsAccessor accessor)
Parameters
Type | Name | Description |
---|---|---|
IReportLabelLayoutEntityImplementation | reportLabelLayoutEntityImplementation | |
ISoRequestItemsAccessor | accessor |
ReportAgent(IReportLabelLayoutEntityImplementation, ISoRequestItemsAccessor, IDebugUser, IServiceCallsRepository)
Proxy class for the Report Agent Used when communicating remote using WebServices. Avoid using directly. Use the AgentFactory to create the proxy instead.
Declaration
public ReportAgent(IReportLabelLayoutEntityImplementation reportLabelLayoutEntityImplementation, ISoRequestItemsAccessor accessor, IDebugUser debugUser, IServiceCallsRepository serviceCallsRepository)
Parameters
Type | Name | Description |
---|---|---|
IReportLabelLayoutEntityImplementation | reportLabelLayoutEntityImplementation | |
ISoRequestItemsAccessor | accessor | |
IDebugUser | debugUser | |
IServiceCallsRepository | serviceCallsRepository |
Methods
CreateDefaultReportLabelLayoutEntityAsync(CancellationToken)
Loading default values into a new ReportLabelLayoutEntity. NetServer calculates default values (e.g. Country) on the entity, which is required when creating/storing a new instance
Declaration
public Task<ReportLabelLayoutEntity> CreateDefaultReportLabelLayoutEntityAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<ReportLabelLayoutEntity> | New ReportLabelLayoutEntity with default values |
DeleteReportLabelLayoutEntityAsync(int, CancellationToken)
Deletes the ReportLabelLayoutEntity
Declaration
public Task DeleteReportLabelLayoutEntityAsync(int reportLabelLayoutEntityId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | reportLabelLayoutEntityId | The identity of the ReportLabelLayoutEntity |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
GetReportLabelLayoutEntityAsync(int, CancellationToken)
Gets a ReportLabelLayoutEntity object.
Declaration
public Task<ReportLabelLayoutEntity> GetReportLabelLayoutEntityAsync(int reportLabelLayoutEntityId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | reportLabelLayoutEntityId | The identifier of the ReportLabelLayoutEntity object |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<ReportLabelLayoutEntity> | ReportLabelLayoutEntity |
SaveReportLabelLayoutEntityAsync(ReportLabelLayoutEntity, CancellationToken)
Updates the existing ReportLabelLayoutEntity or creates a new ReportLabelLayoutEntity if the id parameter is empty
Declaration
public Task<ReportLabelLayoutEntity> SaveReportLabelLayoutEntityAsync(ReportLabelLayoutEntity reportLabelLayoutEntity, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ReportLabelLayoutEntity | reportLabelLayoutEntity | The ReportLabelLayoutEntity that is saved. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<ReportLabelLayoutEntity> | New or updated ReportLabelLayoutEntity |