Namespace: Consultingwerk.SmartFramework.Web
Class 
SmartRequestManager Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.OERA.RequestManager.IRequestManager

File:SmartRequestManager
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Jan 09 12:29:21 CET 2022
Notes:Supports the "SmartRequestManager" custom log entry type



Top Method Summary
Options Name Purpose
+ Consultingwerk.OERA.RestResource.RestMethodResponse CancelRequest (character) Cancels a request based on the client request ID
+ DeregisterRequest (character) Deregisters a Web Request when it has been completed of cancelled
+ RegisterRequest (character, OERequestInfo, IWebRequest) Registers a Web Request, so that it can be cancelled
# Consultingwerk.OERA.RestResource.RestMethodResponse TerminateSession (character, Credentials, character, integer, integer, character, IHttpClient) Terminates a session
# WriteLog (character, LoggingLevelEnum) Writes a Message to the Logfile

Top Constructor Summary
Options Name Purpose
+ SmartRequestManager () Constructor for the SmartRequestManager class


Method Detail
Top

PUBLIC Consultingwerk.OERA.RestResource.RestMethodResponse CancelRequest (character)

Purpose: Cancels a request based on the client request ID
Notes:

Parameters:
pcClientRequestId CHARACTER
The request ID as provided by the client
Returns Consultingwerk.OERA.RestResource.RestMethodResponse
The RestMethodResponse for this request
Top

PUBLIC DeregisterRequest (character)

Purpose: Deregisters a Web Request when it has been completed of cancelled
Notes:

Parameters:
pcClientRequestId CHARACTER
The request ID as provided by the client
Top

PUBLIC RegisterRequest (character, OERequestInfo, IWebRequest)

Purpose: Registers a Web Request, so that it can be cancelled
Notes:

Parameters:
pcClientRequestId CHARACTER
The request ID as provided by the client
poRequestInfo Progress.Lang.OERequestInfo
The OERequestInfo of the current request
poRequest OpenEdge.Web.IWebRequest
The IWebRequest instance representing the call
Top

PROTECTED Consultingwerk.OERA.RestResource.RestMethodResponse TerminateSession (character, Credentials, character, integer, integer, character, IHttpClient)

Purpose: Terminates a session
Notes:

Parameters:
pcOeManagerUrl CHARACTER
The URL for OE Manager requests
poCredentials OpenEdge.Net.HTTP.Credentials
The credentials for the OE Manager call
pcAppName CHARACTER
The PASOE AppName
piAgentID INTEGER
The ID of the PASOE Agent
piSessionID INTEGER
The session to terminate
pcClientRequestId CHARACTER
The request ID as provided by the client
poClient OpenEdge.Net.HTTP.IHttpClient
The IHttpClient instance
Returns Consultingwerk.OERA.RestResource.RestMethodResponse
The RestMethodResponse for this request
Top

PROTECTED WriteLog (character, LoggingLevelEnum)

Purpose: Writes a Message to the Logfile
Notes:

Parameters:
pcMessage CHARACTER
The message to write
poLoggingLevel Consultingwerk.Framework.Enum.LoggingLevelEnum
The LoggingLevelEnum for the message


Constructor Detail
Top

PUBLIC SmartRequestManager ()

Purpose: Constructor for the SmartRequestManager class
Notes:



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