Show / Hide Table of Contents

Class SoWcfRequestInterceptor

Default implementation of SoWcfRequestInterceptorPlugin: Checks config file SuperOffice/WebServices:AllowWebServiceRequests key - throws exception if not true,

Inheritance
Object
SoWcfRequestInterceptor
Implements
ISoWcfRequestInterceptorPlugin
IDisposable
Namespace: SuperOffice.Services.WcfService
Assembly: SoCore.dll
Syntax
public class SoWcfRequestInterceptor : Object, ISoWcfRequestInterceptorPlugin, IDisposable

Constructors

SoWcfRequestInterceptor()

Default implementation of SoWcfRequestInterceptorPlugin: Checks config file SuperOffice/WebServices:AllowWebServiceRequests key - throws exception if not true,

Declaration
public SoWcfRequestInterceptor()

Methods

Dispose()

Default implementation of SoWcfRequestInterceptorPlugin: Checks config file SuperOffice/WebServices:AllowWebServiceRequests key - throws exception if not true,

Declaration
public void Dispose()

OnAuthenticate(String, String, String)

Event raised when web service requests are recieved

Declaration
public virtual OnAuthenticateResponse OnAuthenticate(string service, string method, string requestApplicationToken)
Parameters
Type Name Description
String service

Name of service or agent.

String method

Name of web method

String requestApplicationToken

Application Token from the request

Returns
Type Description
OnAuthenticateResponse

State passed on to other events raised in the web method processing. Could be NULL. Throws InvalidOperationException if web services are disabled.

OnError(String, String, String, Exception, ref WcfRequestInterceptorState)

Event raised if an error occurs. This event is raised when authentication fails too

Declaration
public virtual void OnError(string service, string method, string requestApplicationToken, Exception exception, ref WcfRequestInterceptorState pluginState)
Parameters
Type Name Description
String service

Name of service or agent.

String method

Name of web method

String requestApplicationToken

Application Token from the request

Exception exception

Exception occured

WcfRequestInterceptorState pluginState

State created in OnAuthenticate

OnExecute(String, String, String, ref WcfRequestInterceptorState)

Event raised after the user is authenticated before executing the actual method

Declaration
public virtual void OnExecute(string service, string method, string requestApplicationToken, ref WcfRequestInterceptorState pluginState)
Parameters
Type Name Description
String service

Name of service or agent.

String method

Name of web method

String requestApplicationToken

Application Token from the request

WcfRequestInterceptorState pluginState

State created in OnAuthenticate

OnExecuted(String, String, String, Func<Dictionary<String, String>>, ref WcfRequestInterceptorState)

Event raised after the operation has successfully been carried out

Declaration
public virtual void OnExecuted(string service, string method, string requestApplicationToken, Func<Dictionary<string, string>> responseExtraInfo, ref WcfRequestInterceptorState pluginState)
Parameters
Type Name Description
String service

Name of service or agent.

String method

Name of web method

String requestApplicationToken

Application Token from the request

Func<Dictionary<String, String>> responseExtraInfo

ExtraInfo passed in teh response, that is sent to the client.

WcfRequestInterceptorState pluginState

State created in OnAuthenticate

Implements

ISoWcfRequestInterceptorPlugin
System.IDisposable

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