/// <summary>
 /// Registers a type that may be a CK type (<see cref="IPoco"/>, <see cref="IAutoService"/> or <see cref="IRealObject"/>).
 /// Once the first type is registered, no more call to <see cref="SetAutoServiceKind(Type, AutoServiceKind)"/> is allowed.
 /// </summary>
 /// <param name="t">Type to register. Must not be null.</param>
 public void RegisterType(Type t)
 {
     using (_monitor.OnError(() => ++ _registerFatalOrErrorCount))
     {
         try
         {
             _cc.RegisterType(t);
         }
         catch (Exception ex)
         {
             _monitor.Error($"While registering type '{t.AssemblyQualifiedName}'.", ex);
         }
     }
 }