Show / Hide Table of Contents

Class GlobalQueuedThreadBase<TAsynchronousHandlerProcessor, TAsynchronousArgument>

This class provides a queue implementation for the queued asynchronous execution strategy, that gives us one single queue for the whole NetServer instance. See remarks for important information on execution context! *** NOTE *** on Context: The AsyncContext that is associated with the executing thread is based on the context of the thread that started it. Since this is not predictable, and may change (if the queue empties), you CANNOT ASSUME that the execution context for any unit of work is that of the calling (client) thread!

Therefore, this execution model should only be used if the context is not relevant - that may not be so often.
Inheritance
Object
AsynchronousHandler<TAsynchronousHandlerProcessor, TAsynchronousArgument>
QueuedThreadBase<TAsynchronousHandlerProcessor, TAsynchronousArgument>
GlobalQueuedThreadBase<TAsynchronousHandlerProcessor, TAsynchronousArgument>
Inherited Members
QueuedThreadBase<TAsynchronousHandlerProcessor, TAsynchronousArgument>.ScheduleNewWork()
QueuedThreadBase<TAsynchronousHandlerProcessor, TAsynchronousArgument>.WorkInformation
AsynchronousHandler<TAsynchronousHandlerProcessor, TAsynchronousArgument>.ToString()
AsynchronousHandler<TAsynchronousHandlerProcessor, TAsynchronousArgument>.OnSetup(TAsynchronousArgument)
AsynchronousHandler<TAsynchronousHandlerProcessor, TAsynchronousArgument>.SynchronousSetup(TAsynchronousArgument)
AsynchronousHandler<TAsynchronousHandlerProcessor, TAsynchronousArgument>.AsynchronousOperation()
AsynchronousHandler<TAsynchronousHandlerProcessor, TAsynchronousArgument>.ScheduleNewWork()
AsynchronousHandler<TAsynchronousHandlerProcessor, TAsynchronousArgument>.ExecuteWork()
AsynchronousHandler<TAsynchronousHandlerProcessor, TAsynchronousArgument>.Processor
AsynchronousHandler<TAsynchronousHandlerProcessor, TAsynchronousArgument>.WasSetupCalled
AsynchronousHandler<TAsynchronousHandlerProcessor, TAsynchronousArgument>.HasWorkToDo
AsynchronousHandler<TAsynchronousHandlerProcessor, TAsynchronousArgument>.ThreadName
Namespace: SuperOffice.Threading
Assembly: SoCore.dll
Syntax
public abstract class GlobalQueuedThreadBase<TAsynchronousHandlerProcessor, TAsynchronousArgument> : QueuedThreadBase<TAsynchronousHandlerProcessor, TAsynchronousArgument> where TAsynchronousHandlerProcessor : AsynchronousHandlerProcessor<TAsynchronousArgument>, new()
    where TAsynchronousArgument : class
Type Parameters
Name Description
TAsynchronousHandlerProcessor
TAsynchronousArgument

Constructors

GlobalQueuedThreadBase()

Constructor, only called from derived classes

Declaration
protected GlobalQueuedThreadBase()

Properties

WorkInformation

Work Information implementation that provides access to one static queue.

Declaration
protected override QueuedThreadBase<TAsynchronousHandlerProcessor, TAsynchronousArgument>.WorkInfo WorkInformation { get; }
Property Value
Type Description
QueuedThreadBase.WorkInfo<>
Overrides
SuperOffice.Threading.QueuedThreadBase<TAsynchronousHandlerProcessor, TAsynchronousArgument>.WorkInformation

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top