internal PointToPointReceiveChannelBuilder(
            MessageReceiver messageReceiver, 
            ISerialiser serialiser, 
            AcknowledgementSender acknowledgementSender, 
            MessageHandlerRouter messageHandlerRouter,
            MessageCacheFactory messageCacheFactory, 
            ISystemTime systemTime, 
            ITaskRepeater taskRepeater, 
            ServerAddressRegistry serverAddressRegistry, 
            AuthenticationSessionCache authenticationSessionCache, 
            AuthenticatedServerRegistry authenticatedServerRegistry)
        {
            Contract.Requires(messageReceiver != null);
            Contract.Requires(serialiser != null);
            Contract.Requires(acknowledgementSender != null);
            Contract.Requires(messageHandlerRouter != null);
            Contract.Requires(messageCacheFactory != null);
            Contract.Requires(systemTime != null);
            Contract.Requires(taskRepeater != null);
            Contract.Requires(serverAddressRegistry != null);
            Contract.Requires(authenticationSessionCache != null);
            Contract.Requires(authenticatedServerRegistry != null);

            this.messageReceiver = messageReceiver;
            this.serialiser = serialiser;
            this.acknowledgementSender = acknowledgementSender;
            this.messageHandlerRouter = messageHandlerRouter;
            this.messageCacheFactory = messageCacheFactory;
            this.systemTime = systemTime;
            this.taskRepeater = taskRepeater;
            this.serverAddressRegistry = serverAddressRegistry;
            this.authenticationSessionCache = authenticationSessionCache;
            this.authenticatedServerRegistry = authenticatedServerRegistry;
        }
        public HttpRemoteServerBuilder(
            IHttpServerBuilder httpServerBuilder, 
            ISystemTime systemTime, 
            ISerialiser serialiser, 
            ServerAddressRegistry serverAddressRegistry)
        {
            Contract.Requires(httpServerBuilder != null);
            Contract.Requires(systemTime != null);
            Contract.Requires(serialiser != null);
            Contract.Requires(serverAddressRegistry != null);

            this.httpServerBuilder = httpServerBuilder;
            this.systemTime = systemTime;
            this.serialiser = serialiser;
            this.serverAddressRegistry = serverAddressRegistry;
        }
        internal RequestRecieveChannelBuilder(
            ReplyAddressLookup replyAddressLookup,
            ISerialiser serialiser,
            MessageHandlerRouter messageHandlerRouter,
            AcknowledgementSender acknowledgementSender,
            MessageCacheFactory messageCacheFactory,
            ISystemTime systemTime,
            ITaskRepeater taskRepeater,
            ServerAddressRegistry serverAddressRegistry,
            IMainThreadMarshaller mainThreadMarshaller,
            AuthenticationSessionCache authenticationSessionCache,
            AuthenticatedServerRegistry authenticatedServerRegistry,
            ReplyCorrelationLookup correlationLookup)
        {
            Contract.Requires(replyAddressLookup != null);
            Contract.Requires(serialiser != null);
            Contract.Requires(messageHandlerRouter != null);
            Contract.Requires(acknowledgementSender != null);
            Contract.Requires(messageCacheFactory != null);
            Contract.Requires(systemTime != null);
            Contract.Requires(taskRepeater != null);
            Contract.Requires(serverAddressRegistry != null);
            Contract.Requires(mainThreadMarshaller != null);
            Contract.Requires(authenticationSessionCache != null);
            Contract.Requires(authenticatedServerRegistry != null);
            Contract.Requires(correlationLookup != null);

            this.replyAddressLookup = replyAddressLookup;
            this.serialiser = serialiser;
            this.messageHandlerRouter = messageHandlerRouter;
            this.acknowledgementSender = acknowledgementSender;
            this.messageCacheFactory = messageCacheFactory;
            this.systemTime = systemTime;
            this.taskRepeater = taskRepeater;
            this.serverAddressRegistry = serverAddressRegistry;
            this.mainThreadMarshaller = mainThreadMarshaller;
            this.authenticationSessionCache = authenticationSessionCache;
            this.authenticatedServerRegistry = authenticatedServerRegistry;
            this.correlationLookup = correlationLookup;
        }
 SubscriptionRequestReceiveChannelBuilder(
     MessageReceiver messageReceiver, 
     AcknowledgementSender acknowledgementSender, 
     IPublisherRegistry publisherRegistry, 
     ServerAddressRegistry serverAddressRegistry, 
     AuthenticationSessionCache authenticationSessionCache, 
     AuthenticatedServerRegistry authenticatedServerRegistry)
 {
     Contract.Requires(messageReceiver != null);
     Contract.Requires(acknowledgementSender != null);
     Contract.Requires(publisherRegistry != null);
     Contract.Requires(serverAddressRegistry != null);
     Contract.Requires(authenticationSessionCache != null);
     Contract.Requires(authenticatedServerRegistry != null);
     
     this.messageReceiver = messageReceiver;
     this.acknowledgementSender = acknowledgementSender;
     this.publisherRegistry = publisherRegistry;
     this.serverAddressRegistry = serverAddressRegistry;
     this.authenticationSessionCache = authenticationSessionCache;
     this.authenticatedServerRegistry = authenticatedServerRegistry;
 }
        public MessageRegisteredAddressReassigner(ServerAddressRegistry registry)
        {
            Contract.Requires(registry != null);

            this.registry = registry;
        }
 public MessageServerBuilder(ServerAddressRegistry serverAddressRegistry)
 {
     Contract.Requires(serverAddressRegistry != null);
     this.serverAddressRegistry = serverAddressRegistry;
 }