Ejemplo n.º 1
0
 internal TransportController(IRegistrationController registrationController)
     : this()
 {
     if (registrationController == null)
     {
         registrationController = new RegistrationControllers.NullRegistrationController((byte[])null);
     }
     RegistrationController = registrationController;
 }
Ejemplo n.º 2
0
 /// <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));
 }