protected void AssertRegistration() { if (Registration == null) throw new InvalidOperationException("Client is missing registration info"); }