Exemplo n.º 1
0
        public PeriodicResenderImpl(IThreadingProxy threadingProxy, UnacknowledgedReliableMessageContainer unacknowledgedReliableMessageContainer, MessageTransmitterImpl messageTransmitter)
        {
            this.threadingProxy = threadingProxy;
            this.unacknowledgedReliableMessageContainer = unacknowledgedReliableMessageContainer;
            this.messageTransmitter = messageTransmitter;

            this.cancellationTokenSource = threadingProxy.CreateCancellationTokenSource();
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
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;
 }
 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;
 }
Exemplo n.º 7
0
        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));
            }));
        }
Exemplo n.º 8
0
 public PeriodicAnnouncerImpl(
     IThreadingProxy threadingProxy,
     IPofSerializer courierSerializer,
     ReadableCourierEndpoint localEndpoint,
     NetworkBroadcaster networkBroadcaster
     ) : this(
         threadingProxy.CreateCancellationTokenSource(),
         courierSerializer,
         localEndpoint,
         networkBroadcaster)
 {
 }
Exemplo n.º 9
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>();
        }
 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();
        }
Exemplo n.º 12
0
 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>())
 {
 }