Show / Hide Table of Contents

Class ThreadContextBuilder

Provides methods to configure and build ThreadContext instances.

Inheritance
System.Object
ThreadContextBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Threading.Tasks
Assembly: Kephas.Core.dll
Syntax
public class ThreadContextBuilder

Constructors

| Improve this Doc View Source

ThreadContextBuilder()

Initializes a new instance of the ThreadContextBuilder class.

Declaration
public ThreadContextBuilder()

Methods

| Improve this Doc View Source

CreateThreadContext()

Creates a new ThreadContext.

Declaration
public ThreadContext CreateThreadContext()
Returns
Type Description
ThreadContext

A ThreadContext.

| Improve this Doc View Source

WithRestoreAction(Action<ThreadContext>)

Adds the restore action to the ambient services. This method is not thread safe, use it with caution and only when initializing the server.

Declaration
public ThreadContextBuilder WithRestoreAction(Action<ThreadContext> restoreAction)
Parameters
Type Name Description
System.Action<ThreadContext> restoreAction

The restore action.

Returns
Type Description
ThreadContextBuilder

This builder.

| Improve this Doc View Source

WithStoreAction(Action<ThreadContext>)

Adds the store action to the ambient services. This method is not thread safe, use it with caution and only when initializing the server.

Declaration
public ThreadContextBuilder WithStoreAction(Action<ThreadContext> storeAction)
Parameters
Type Name Description
System.Action<ThreadContext> storeAction

The store action.

Returns
Type Description
ThreadContextBuilder

This builder.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX