internal TransportController(IRegistrationController registrationController) : this() { if (registrationController == null) { registrationController = new RegistrationControllers.NullRegistrationController((byte[])null); } RegistrationController = registrationController; }
/// <summary> /// Instantiates a new <see cref="TransportController"/>. /// </summary> /// <param name="transportConfiguration">The transportation configuration for this <see cref="TransportController"/>.</param> /// <param name="registrationController">The registration controller used by this <see cref="TransportController"/>.</param> public TransportController(ITransportConfiguration transportConfiguration, IRegistrationController registrationController) : this() { if (registrationController == null) { registrationController = new RegistrationControllers.NullRegistrationController((byte[])null); } RegistrationController = registrationController; TransportConfiguration = transportConfiguration ?? throw new ArgumentNullException(nameof(transportConfiguration)); }