Table of Contents

Method GetOrAdd

Namespace
Oscova.Agents.Collections
Assembly
Oscova.Agents.dll

GetOrAdd(ChatClientAgent)

Returns the existing cached agent with the same identifier or stores the supplied one.

public ChatClientAgent GetOrAdd(ChatClientAgent item)

Parameters

item ChatClientAgent

The agent to cache if no existing agent is present.

Returns

ChatClientAgent

The cached agent for the supplied identifier.