Method AddContactRelationshipAgent
- Namespace
- MailFathom.AI
- Assembly
- MailFathom.AI.dll
AddContactRelationshipAgent(IServiceCollection)
Registers the agent that reads an opened contact's correspondence into where the relationship stands, and the use case a contact page reaches it through.
public static IServiceCollection AddContactRelationshipAgent(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe service collection to add to.
Returns
- IServiceCollection
The same service collection, so registration reads as one expression.
Remarks
Called only where the deployment declared a chat endpoint and turned the card on, so the use case's absence is the answer a contact page gets: it draws the record, the conversations, and the documents, which is the page every deployment served before this existed. Nothing stands in for it when this is not called, because a stand-in answering "no card" would have every opened contact wait on a provider-shaped call that a deployment with no provider can never make.
Both are scoped, because one opened contact is one derivation: the ledger the call is charged to, the credential it resolves, the transport it opens, and the scope its mail is correlated under all belong to that request.
Exceptions
- ArgumentNullException
Thrown when
servicesis null.