public override Task Reassign(int ownerId, Envelope[] outgoing) { var cmd = _session.CallFunction("uspMarkOutgoingOwnership") .WithIdList(_settings, outgoing) .With("owner", ownerId); return(cmd.ExecuteNonQueryAsync(_cancellation)); }
public Task Reassign(int ownerId, Envelope[] incoming) { return(_session.CallFunction("uspMarkIncomingOwnership") .WithIdList(_databaseSettings, incoming) .With("owner", ownerId) .ExecuteNonQueryAsync(_cancellation)); }