SecurityContextProvider CreateSecurityContext Method | Apache log4net™ SDK Documentation

Create a SecurityContext for a consumer

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public virtual SecurityContext CreateSecurityContext(
    	Object consumer
    )

    Public Overridable Function CreateSecurityContext (
    	consumer As Object
    ) As SecurityContext

    public:
    virtual SecurityContext^ CreateSecurityContext(
    	Object^ consumer
    )

    abstract CreateSecurityContext :
            consumer : Object -> SecurityContext
    override CreateSecurityContext :
            consumer : Object -> SecurityContext

#### Parameters

consumer
  Type: System
  Object
  The consumer requesting the SecurityContext

#### Return Value

Type: SecurityContext
An impersonation context
Remarks

The default implementation is to return a NullSecurityContext.

Subclasses should override this method to provide their own behavior.

See Also

#### Reference

SecurityContextProvider Class
log4net.Core Namespace