Show / Hide Table of Contents

Class TicketLoggerProcessor

This class is mainly concerned with collecting information that will be needed to perform logging of ticket changes - pre/post values - and will delegate the actual logging to an instance of ITicketLoggingLogic.

Inheritance
Object
AsynchronousHandlerProcessor<BatchSave>
BatchSaveProcessor
TicketLoggerProcessor
Inherited Members
AsynchronousHandlerProcessor<BatchSave>.ExecuteWork()
AsynchronousHandlerProcessor<BatchSave>.Argument
AsynchronousHandlerProcessor<BatchSave>.ThreadName
Namespace: SuperOffice.Data.Private.TicketLogging
Assembly: SoDataBase.dll
Syntax
public sealed class TicketLoggerProcessor : BatchSaveProcessor
Remarks

Note that there is a new instance of this class for each and every Sql executed

Constructors

TicketLoggerProcessor()

This class is mainly concerned with collecting information that will be needed to perform logging of ticket changes - pre/post values - and will delegate the actual logging to an instance of ITicketLoggingLogic.

Declaration
public TicketLoggerProcessor()
Remarks

Note that there is a new instance of this class for each and every Sql executed

Properties

HasWorkToDo

Override: We're not using the standard query-copy mechanism of the base class because it does not fit our needs. Therefore we also need to take over the implementation of this flag.

Declaration
public override bool HasWorkToDo { get; }
Property Value
Type Description
Boolean
Overrides
SuperOffice.Data.Private.BatchSaveProcessor.HasWorkToDo
Remarks

Note that there is a new instance of this class for each and every Sql executed

Methods

OnOperation(BatchSave)

Call the actual logging logic. This method is called on a separate thread, asynchronously.

Declaration
protected override void OnOperation(BatchSave _)
Parameters
Type Name Description
BatchSave _
Overrides
SuperOffice.Data.Private.BatchSaveProcessor.OnOperation(SuperOffice.Data.SQL.BatchSave)
Remarks

Note that there is a new instance of this class for each and every Sql executed

OnSetup(BatchSave)

Collect all the information we will need, before the Save actually happens

Declaration
public override bool OnSetup(BatchSave inputQueryBatch)
Parameters
Type Name Description
BatchSave inputQueryBatch
Returns
Type Description
Boolean
Overrides
SuperOffice.Data.Private.BatchSaveProcessor.OnSetup(SuperOffice.Data.SQL.BatchSave)
Remarks

Note that there is a new instance of this class for each and every Sql executed

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top