public LocalServiceRegistryImpl(LocalServiceContainer localServiceContainer, ClusteringPhaseManager clusteringPhaseManager, InvokableServiceContextFactory invokableServiceContextFactory, IConcurrentDictionary <Guid, InvokableServiceContext> serviceContextsById) { this.localServiceContainer = localServiceContainer; this.clusteringPhaseManager = clusteringPhaseManager; this.invokableServiceContextFactory = invokableServiceContextFactory; this.serviceContextsById = serviceContextsById; }
public ClusteringPhase CreateHostPhase(LocalServiceContainer localServiceContainer, IListenerSocket listenerSocket) { var hostContext = new HostContextImpl(portableObjectBoxConverter, localServiceContainer); var phase = new HostPhase(collectionFactory, threadingProxy, hostSessionFactory, hostContext, listenerSocket); return(phase); }
public IndeterminateClusteringPhase(IThreadingProxy threadingProxy, INetworkingProxy networkingProxy, ClusteringPhaseFactory clusteringPhaseFactory, ClusteringConfiguration clusteringConfiguration, LocalServiceContainer localServiceContainer, ClusteringPhaseManager clusteringPhaseManager) { this.threadingProxy = threadingProxy; this.networkingProxy = networkingProxy; this.clusteringPhaseFactory = clusteringPhaseFactory; this.clusteringConfiguration = clusteringConfiguration; this.localServiceContainer = localServiceContainer; this.clusteringPhaseManager = clusteringPhaseManager; }
public HostContextImpl( PortableObjectBoxConverter portableObjectBoxConverter, LocalServiceContainer localServiceContainer ) : this( portableObjectBoxConverter, localServiceContainer, new ConcurrentSet <RemoteInvokable>()) { }
public GuestPhase(ClusteringPhaseFactory clusteringPhaseFactory, LocalServiceContainer localServiceContainer, ClusteringPhaseManager clusteringPhaseManager, MessageSender messageSender, PofDispatcher pofDispatcher, IUniqueIdentificationSet availableInvocationIds, IConcurrentDictionary <uint, AsyncValueBox> invocationResponseBoxesById) { this.clusteringPhaseFactory = clusteringPhaseFactory; this.localServiceContainer = localServiceContainer; this.clusteringPhaseManager = clusteringPhaseManager; this.messageSender = messageSender; this.pofDispatcher = pofDispatcher; this.availableInvocationIds = availableInvocationIds; this.invocationResponseBoxesById = invocationResponseBoxesById; }
public ClusteringPhase CreateGuestPhase(LocalServiceContainer localServiceContainer, IConnectedSocket clientSocket) { var pofStream = pofStreamsFactory.CreatePofStream(clientSocket.Stream); var pofDispatcher = pofStreamsFactory.CreateDispatcher(pofStream); var messageSender = new MessageSenderImpl(pofStream.Writer, portableObjectBoxConverter); var phase = new GuestPhase( this, localServiceContainer, clusteringPhaseManager, messageSender, pofDispatcher, collectionFactory.CreateUniqueIdentificationSet(true), collectionFactory.CreateConcurrentDictionary <uint, AsyncValueBox>() ); phase.Initialize(); return(phase); }
public HostContextImpl(PortableObjectBoxConverter portableObjectBoxConverter, LocalServiceContainer localServiceContainer, IConcurrentSet <RemoteInvokable> remoteInvokables) { this.portableObjectBoxConverter = portableObjectBoxConverter; this.localServiceContainer = localServiceContainer; this.remoteInvokables = remoteInvokables; }
public ClusteringPhase CreateIndeterminatePhase(LocalServiceContainer localServiceContainer) { var phase = new IndeterminateClusteringPhase(threadingProxy, networkingProxy, this, clusteringConfiguration, localServiceContainer, clusteringPhaseManager); return(phase); }