Show / Hide Table of Contents

Class SoftTrigger

Utility class for subscribing to changes in the database. The current implementation only handles changes made from this instance of NetServer.

Inheritance
Object
SoftTrigger
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.Data
Assembly: SoDataBase.dll
Syntax
[SoInject("Database")]
public class SoftTrigger

Constructors

SoftTrigger(ISoftTriggerPlugin[])

Constructur used for unit-testing SoftTrigger and SoftTrigger-plugin implementations.

Declaration
public SoftTrigger(ISoftTriggerPlugin[] plugins)
Parameters
Type Name Description
ISoftTriggerPlugin[] plugins

Methods

SubscribeOnPostChange(Int32, SoftTrigger.OnChange)

Subscribe to event raised after the update command is sent to the database.

Declaration
public void SubscribeOnPostChange(int tableNumber, SoftTrigger.OnChange callback)
Parameters
Type Name Description
Int32 tableNumber

Table subscribing to modifications for.

SoftTrigger.OnChange callback

Callback called when modifications in the database is carried out.

SubscribeOnPreChange(Int32, SoftTrigger.OnChange)

Subscribe to event raised before the update command is sent to the database.

Declaration
public void SubscribeOnPreChange(int tableNumber, SoftTrigger.OnChange callback)
Parameters
Type Name Description
Int32 tableNumber

Table subscribing to modifications for.

SoftTrigger.OnChange callback

Callback called when modifications in the database is carried out.

UnsubscribeOnPostChange(Int32, SoftTrigger.OnChange)

Unsubscribe to event raised after the update command is sent to the database.

Declaration
public void UnsubscribeOnPostChange(int tableNumber, SoftTrigger.OnChange callback)
Parameters
Type Name Description
Int32 tableNumber

Table subscribing to modifications for.

SoftTrigger.OnChange callback

Callback called when modifications in the database is carried out.

UnsubscribeOnPreChange(Int32, SoftTrigger.OnChange)

Unsubscribe to event raised before the update command is sent to the database.

Declaration
public void UnsubscribeOnPreChange(int tableNumber, SoftTrigger.OnChange callback)
Parameters
Type Name Description
Int32 tableNumber

Table subscribing to modifications for.

SoftTrigger.OnChange callback

Callback called when modifications in the database is carried out.

Extension Methods

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