Table of Contents

Interface IRequestHandlers

Namespace
NuGet.Protocol.Plugins
Assembly
NuGet.Protocol.dll
public interface IRequestHandlers
Extension Methods

Methods

AddOrUpdate(MessageMethod, Func<IRequestHandler>, Func<IRequestHandler, IRequestHandler>)

void AddOrUpdate(MessageMethod method, Func<IRequestHandler> addHandlerFunc, Func<IRequestHandler, IRequestHandler> updateHandlerFunc)

Parameters

method MessageMethod
addHandlerFunc Func<IRequestHandler>
updateHandlerFunc Func<IRequestHandler, IRequestHandler>

TryAdd(MessageMethod, IRequestHandler)

bool TryAdd(MessageMethod method, IRequestHandler handler)

Parameters

method MessageMethod
handler IRequestHandler

Returns

bool

TryGet(MessageMethod, out IRequestHandler)

bool TryGet(MessageMethod method, out IRequestHandler handler)

Parameters

method MessageMethod
handler IRequestHandler

Returns

bool

TryRemove(MessageMethod)

bool TryRemove(MessageMethod method)

Parameters

method MessageMethod

Returns

bool