public PeriodicResenderImpl(IThreadingProxy threadingProxy, UnacknowledgedReliableMessageContainer unacknowledgedReliableMessageContainer, MessageTransmitterImpl messageTransmitter) { this.threadingProxy = threadingProxy; this.unacknowledgedReliableMessageContainer = unacknowledgedReliableMessageContainer; this.messageTransmitter = messageTransmitter; this.cancellationTokenSource = threadingProxy.CreateCancellationTokenSource(); }
public HostSessionFactoryImpl(IThreadingProxy threadingProxy, ICollectionFactory collectionFactory, IPofSerializer pofSerializer, PofStreamsFactory pofStreamsFactory, PortableObjectBoxConverter portableObjectBoxConverter) { this.threadingProxy = threadingProxy; this.collectionFactory = collectionFactory; this.pofSerializer = pofSerializer; this.pofStreamsFactory = pofStreamsFactory; this.portableObjectBoxConverter = portableObjectBoxConverter; }
public CourierClientFactoryImpl(GuidProxy guidProxy, IThreadingProxy threadingProxy, INetworkingProxy networkingProxy, ObjectPoolFactory objectPoolFactory, IPofSerializer pofSerializer) { this.guidProxy = guidProxy; this.threadingProxy = threadingProxy; this.networkingProxy = networkingProxy; this.objectPoolFactory = objectPoolFactory; this.pofSerializer = pofSerializer; }
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 ServiceClientFactoryImpl(ProxyGenerator proxyGenerator, IStreamFactory streamFactory, ICollectionFactory collectionFactory, IThreadingProxy threadingProxy, INetworkingProxy networkingProxy, IPofSerializer pofSerializer, PofStreamsFactory pofStreamsFactory) { this.proxyGenerator = proxyGenerator; this.streamFactory = streamFactory; this.collectionFactory = collectionFactory; this.threadingProxy = threadingProxy; this.networkingProxy = networkingProxy; this.pofSerializer = pofSerializer; this.pofStreamsFactory = pofStreamsFactory; }
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; }
public AsymmetricStreamIT() { streamFactory = new StreamFactory(); IThreadingFactory threadingFactory = new ThreadingFactory(); ISynchronizationFactory synchronizationFactory = new SynchronizationFactory(); threadingProxy = new ThreadingProxy(threadingFactory, synchronizationFactory); serializer = new PofSerializer(new PofContext().With(x => { x.RegisterPortableObjectType(1, typeof(PofStreamsIT.TestClass)); })); }
public PeriodicAnnouncerImpl( IThreadingProxy threadingProxy, IPofSerializer courierSerializer, ReadableCourierEndpoint localEndpoint, NetworkBroadcaster networkBroadcaster ) : this( threadingProxy.CreateCancellationTokenSource(), courierSerializer, localEndpoint, networkBroadcaster) { }
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>(); }
public PofDispatcherImpl( IThreadingProxy threadingProxy, PofStreamReader reader, IConcurrentDictionary <Type, Action <object> > handlersByType, IConcurrentSet <Action> shutdownHandlers ) : this( reader, handlersByType, shutdownHandlers, threadingProxy.CreateCancellationTokenSource() ) { }
public CourierAnnouncerImpl( IThreadingProxy threadingProxy, ManageableCourierEndpoint localEndpoint, OutboundEnvelopeManager outboundEnvelopeManager) { this.threadingProxy = threadingProxy; this.localEndpoint = localEndpoint; this.outboundEnvelopeManager = outboundEnvelopeManager; this.thread = threadingProxy.CreateThread(ThreadStart, new ThreadCreationOptions() { IsBackground = true }); this.cancellationTokenSource = threadingProxy.CreateCancellationTokenSource(); }
public PofStreamsFactoryImpl(IThreadingProxy threadingProxy, IStreamFactory streamFactory, IPofSerializer serializer) { this.threadingProxy = threadingProxy; this.streamFactory = streamFactory; this.serializer = serializer; }
public PofDispatcherImpl( IThreadingProxy threadingProxy, PofStreamReader reader ) : this(threadingProxy, reader, new ConcurrentDictionary <Type, Action <object> >(), new ConcurrentSet <Action>()) { }