コード例 #1
0
 public LocalServiceRegistryImpl(LocalServiceContainer localServiceContainer, ClusteringPhaseManager clusteringPhaseManager, InvokableServiceContextFactory invokableServiceContextFactory, IConcurrentDictionary <Guid, InvokableServiceContext> serviceContextsById)
 {
     this.localServiceContainer          = localServiceContainer;
     this.clusteringPhaseManager         = clusteringPhaseManager;
     this.invokableServiceContextFactory = invokableServiceContextFactory;
     this.serviceContextsById            = serviceContextsById;
 }
コード例 #2
0
        public ClusteringPhase CreateHostPhase(LocalServiceContainer localServiceContainer, IListenerSocket listenerSocket)
        {
            var hostContext = new HostContextImpl(portableObjectBoxConverter, localServiceContainer);
            var phase       = new HostPhase(collectionFactory, threadingProxy, hostSessionFactory, hostContext, listenerSocket);

            return(phase);
        }
コード例 #3
0
 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;
 }
コード例 #4
0
 public HostContextImpl(
     PortableObjectBoxConverter portableObjectBoxConverter,
     LocalServiceContainer localServiceContainer
     ) : this(
         portableObjectBoxConverter,
         localServiceContainer,
         new ConcurrentSet <RemoteInvokable>())
 {
 }
コード例 #5
0
ファイル: GuestPhase.cs プロジェクト: miyu/Dargon.Services
 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;
 }
コード例 #6
0
        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);
        }
コード例 #7
0
 public HostContextImpl(PortableObjectBoxConverter portableObjectBoxConverter, LocalServiceContainer localServiceContainer, IConcurrentSet <RemoteInvokable> remoteInvokables)
 {
     this.portableObjectBoxConverter = portableObjectBoxConverter;
     this.localServiceContainer      = localServiceContainer;
     this.remoteInvokables           = remoteInvokables;
 }
コード例 #8
0
        public ClusteringPhase CreateIndeterminatePhase(LocalServiceContainer localServiceContainer)
        {
            var phase = new IndeterminateClusteringPhase(threadingProxy, networkingProxy, this, clusteringConfiguration, localServiceContainer, clusteringPhaseManager);

            return(phase);
        }