public ClusteringPhaseFactoryImpl(ICollectionFactory collectionFactory, IThreadingProxy threadingProxy, INetworkingProxy networkingProxy, PofStreamsFactory pofStreamsFactory, HostSessionFactory hostSessionFactory, ClusteringConfiguration clusteringConfiguration, PortableObjectBoxConverter portableObjectBoxConverter, ClusteringPhaseManager clusteringPhaseManager)
 {
     this.collectionFactory          = collectionFactory;
     this.threadingProxy             = threadingProxy;
     this.networkingProxy            = networkingProxy;
     this.pofStreamsFactory          = pofStreamsFactory;
     this.hostSessionFactory         = hostSessionFactory;
     this.clusteringConfiguration    = clusteringConfiguration;
     this.portableObjectBoxConverter = portableObjectBoxConverter;
     this.clusteringPhaseManager     = clusteringPhaseManager;
 }
Beispiel #2
0
        public HostPhase(ICollectionFactory collectionFactory, IThreadingProxy threadingProxy, HostSessionFactory hostSessionFactory, HostContext hostContext, IListenerSocket listenerSocket)
        {
            this.threadingProxy     = threadingProxy;
            this.hostSessionFactory = hostSessionFactory;
            this.hostContext        = hostContext;
            this.listenerSocket     = listenerSocket;

            this.cancellationTokenSource = threadingProxy.CreateCancellationTokenSource();
            this.listenerThread          = threadingProxy.CreateThread(ListenerThreadEntryPoint, new ThreadCreationOptions {
                IsBackground = true
            });
            sessions = collectionFactory.CreateConcurrentSet <HostSession>();
        }