Highway Framework  Release 1.0.1.0
The fastest and smoothest way to great architecture
 All Classes Namespaces Functions Variables Properties Events
Public Member Functions | Properties
Highway.Data.Interceptors.AuditableInterceptor Class Reference

An interceptor that operates pre-save to add audit information to the records being committed that implement the Highway.Data.Interfaces.IAuditableEntity interface More...

Inheritance diagram for Highway.Data.Interceptors.AuditableInterceptor:
Highway.Data.Interfaces.IInterceptor< in T >

List of all members.

Public Member Functions

 AuditableInterceptor (IUserNameService userNameService, int priority=0)
 Creates a interceptor for audit data attachment
InterceptorResult Execute (IDataContext context, PreSaveEventArgs eventArgs)
 Executes the interceptor handle an event based on the event arguments
- Public Member Functions inherited from Highway.Data.Interfaces.IInterceptor< in T >
InterceptorResult Execute (IDataContext context, T eventArgs)
 Executes the interceptor handle an event based on the event arguments

Properties

int Priority [get, set]
 The priority order that this interceptor has for ordered execution by the event manager
- Properties inherited from Highway.Data.Interfaces.IInterceptor< in T >

Detailed Description

An interceptor that operates pre-save to add audit information to the records being committed that implement the Highway.Data.Interfaces.IAuditableEntity interface


Constructor & Destructor Documentation

Highway.Data.Interceptors.AuditableInterceptor.AuditableInterceptor ( IUserNameService  userNameService,
int  priority = 0 
)
inline

Creates a interceptor for audit data attachment

Parameters:
userNameServiceApplication Service that provides current user name
priorityThe order in the priority stack that the interceptor should operate on

Member Function Documentation

InterceptorResult Highway.Data.Interceptors.AuditableInterceptor.Execute ( IDataContext  context,
PreSaveEventArgs  eventArgs 
)
inline

Executes the interceptor handle an event based on the event arguments

Parameters:
contextThe data context that raised the event
eventArgsThe event arguments that were passed from the context
Returns:
An Interceptor Result

Property Documentation

int Highway.Data.Interceptors.AuditableInterceptor.Priority
getset

The priority order that this interceptor has for ordered execution by the event manager

Implements Highway.Data.Interfaces.IInterceptor< in T >.


The documentation for this class was generated from the following file: