Table of Contents

Class StreamingMiddlewareExtension

Namespace
AutoGen.Core
Assembly
AutoGen.Core.dll
public static class StreamingMiddlewareExtension
Inheritance
StreamingMiddlewareExtension
Inherited Members

Methods

RegisterStreamingMiddleware<TAgent>(MiddlewareStreamingAgent<TAgent>, IStreamingMiddleware)

Register an IStreamingMiddleware to an existing IStreamingAgent and return a new agent with the registered middleware. For registering an IMiddleware, please refer to RegisterMiddleware<TAgent>(MiddlewareAgent<TAgent>, IMiddleware)

public static MiddlewareStreamingAgent<TAgent> RegisterStreamingMiddleware<TAgent>(this MiddlewareStreamingAgent<TAgent> agent, IStreamingMiddleware middleware) where TAgent : IStreamingAgent

Parameters

agent MiddlewareStreamingAgent<TAgent>
middleware IStreamingMiddleware

Returns

MiddlewareStreamingAgent<TAgent>

Type Parameters

TAgent

RegisterStreamingMiddleware<TStreamingAgent>(TStreamingAgent, IStreamingMiddleware)

Register an IStreamingMiddleware to an existing IStreamingAgent and return a new agent with the registered middleware. For registering an IMiddleware, please refer to RegisterMiddleware<TAgent>(MiddlewareAgent<TAgent>, IMiddleware)

public static MiddlewareStreamingAgent<TStreamingAgent> RegisterStreamingMiddleware<TStreamingAgent>(this TStreamingAgent agent, IStreamingMiddleware middleware) where TStreamingAgent : IStreamingAgent

Parameters

agent TStreamingAgent
middleware IStreamingMiddleware

Returns

MiddlewareStreamingAgent<TStreamingAgent>

Type Parameters

TStreamingAgent