Table of Contents

Method SetContextBag

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

SetContextBag<T>()

Creates and stores a managed object in HTTP context bag through it's type.

[Obsolete("This method is deprecated and should be removed in future Sisk versions. Please, use Bag property instead.")]
public T SetContextBag<T>() where T : notnull, new()

Returns

T

Returns the stored object.

Type Parameters

T

The type of object that will be stored in the HTTP context bag.

SetContextBag<T>(T)

Stores a managed object in HTTP context bag through it's type.

[Obsolete("This method is deprecated and should be removed in future Sisk versions. Please, use Bag property instead.")]
public T SetContextBag<T>(T contextObject) where T : notnull

Parameters

contextObject T

The object which will be stored.

Returns

T

Returns the stored object.

Type Parameters

T

The type of object that will be stored in the HTTP context bag.