Show / Hide Table of Contents

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.

Inheritance
object
ReportAgent
Implements
IReportAgent
IAgent
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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

Implements

IReportAgent
IAgent
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top