Namespace: Consultingwerk.Framework.Server
Class 
SessionContextSerializer Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:SessionContextSerializer
Purpose:Serializes the client side context for a server request
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Wed Jan 16 12:50:36 CET 2013
Notes:Uses the Context Dataset for context serialization
Optionally restores modified context from the AppServer
on the client
Purpose: Constructor for the SessionContextSerializer class
Notes: Defaults to NOT collect context from the AppServer



Top Method Summary
Options Name Purpose
# CollectContextFromServerHandler (Object, EventArgs) Event handler for the CollectContextFromServer event of the Service Adapter
# PrepareContextForServerHandler (Object, EventArgs) Event handler for the PrepareContextForServer event of the Service Adapter
# SubscribeEvents (IServiceAdapterWithContextEvents, logical) Subscribes to the Events of the Service Adapter instance

Top Constructor Summary
Options Name Purpose
+ SessionContextSerializer () Constructor for the SessionContextSerializer class
+ SessionContextSerializer (IServiceAdapterWithContextEvents) Constructor for the SessionContextSerializer class
+ SessionContextSerializer (IServiceAdapterWithContextEvents, logical) Constructor for the SessionContextSerializer class
+ SessionContextSerializer (logical) Constructor for the SessionContextSerializer class


Method Detail
Top

PROTECTED CollectContextFromServerHandler (Object, EventArgs)

Purpose: Event handler for the CollectContextFromServer event of the Service Adapter
Notes: Assigns updated context from the server to the client side Session Manager

Parameters:
sender Progress.Lang.Object
The object that raised the CollectContextFromServer event
e Consultingwerk.EventArgs
The Consultingwerk.EventArgs with the data for this event
Top

PROTECTED PrepareContextForServerHandler (Object, EventArgs)

Purpose: Event handler for the PrepareContextForServer event of the Service Adapter
Notes: Assigns client side Session Manager values to the context dataset

Parameters:
sender Progress.Lang.Object
The object that raised the PrepareContextForServer event
e Consultingwerk.EventArgs
The Consultingwerk.EventArgs with the data for this event
Top

PROTECTED SubscribeEvents (IServiceAdapterWithContextEvents, logical)

Purpose: Subscribes to the Events of the Service Adapter instance
Notes:

Parameters:
poServiceAdapter Consultingwerk.OERA.IServiceAdapterWithContextEvents
The ServiceAdapter instance to subscribe to
plCollectContextFromServer LOGICAL
Logical value indicating if the context from the server should be assigned back to the client side SessionManager


Constructor Detail
Top

PUBLIC SessionContextSerializer ()

Purpose: Constructor for the SessionContextSerializer class
Notes: Defaults to NOT collect context from the AppServer

Top

PUBLIC SessionContextSerializer (IServiceAdapterWithContextEvents)

Purpose: Constructor for the SessionContextSerializer class
Notes: Defaults to NOT collect context from the AppServer

Parameters:
poServiceAdapter Consultingwerk.OERA.IServiceAdapterWithContextEvents
The ServiceAdapter instance to subscribe to
Top

PUBLIC SessionContextSerializer (IServiceAdapterWithContextEvents, logical)

Purpose: Constructor for the SessionContextSerializer class
Notes:

Parameters:
poServiceAdapter Consultingwerk.OERA.IServiceAdapterWithContextEvents
The ServiceAdapter instance to subscribe to
plCollectContextFromServer LOGICAL
Logical value indicating if the context from the server should be assigned back to the client side SessionManager
Top

PUBLIC SessionContextSerializer (logical)

Purpose: Constructor for the SessionContextSerializer class
Notes:

Parameters:
plCollectContextFromServer LOGICAL
Logical value indicating if the context from the server should be assigned back to the client side SessionManager


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       09.11.2024 18:37:20