fun ensureMediatorRecord(agent: Agent): Single<MediatorRecord>
See MediatorManager.ensureMediatorRecord. Makes sure that the agent has a mediator record by using DotnetMediatorManager. After that, we check if the dotnet mediator record is present. If it is not, we connect to the mediator and setup an inbox.