private NetworkEventMonitor ConnectIdentity(string identityID) { var monitor = Connect(); var task = new RegisterIdentityTask { IdentityID = identityID, Client = new ClientInfo { InstanceID = "InstanceID" } }; simulation.RegisterIdentity(task); return(monitor); }
public async Task <RegisterIdentityTask> RegisterIdentity(RegisterIdentityTask task) { await CallService(); return(simulation.RegisterIdentity(PrepareTask(task))); }