public PofDispatcherImpl(PofStreamReader reader, IConcurrentDictionary <Type, Action <object> > handlersByType, IConcurrentSet <Action> shutdownHandlers, ICancellationTokenSource dispatcherTaskCancellationTokenSource)
 {
     this.reader           = reader;
     this.handlersByType   = handlersByType;
     this.shutdownHandlers = shutdownHandlers;
     this.dispatcherTaskCancellationTokenSource = dispatcherTaskCancellationTokenSource;
 }
Ejemplo n.º 2
0
 public HostSessionImpl(HostContext hostContext, ICancellationTokenSource cancellationTokenSource, MessageSender messageSender, PofDispatcher pofDispatcher, IConcurrentSet <Guid> remotelyHostedServices, IUniqueIdentificationSet availableInvocationIds, IConcurrentDictionary <uint, AsyncValueBox> invocationResponseBoxesById)
 {
     this.hostContext                 = hostContext;
     this.cancellationTokenSource     = cancellationTokenSource;
     this.messageSender               = messageSender;
     this.pofDispatcher               = pofDispatcher;
     this.remotelyHostedServices      = remotelyHostedServices;
     this.availableInvocationIds      = availableInvocationIds;
     this.invocationResponseBoxesById = invocationResponseBoxesById;
 }
Ejemplo n.º 3
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()
         )
 {
 }
Ejemplo n.º 5
0
 public CourierFacade(IConcurrentSet<ITransport> transports, IRyuContainer container) {
    this.transports = transports;
    this.container = container;
 }
Ejemplo n.º 6
0
 public Messenger(Identity identity, IConcurrentSet <ITransport> transports, RoutingTable routingTable)
 {
     this.identity     = identity;
     this.transports   = transports;
     this.routingTable = routingTable;
 }
Ejemplo n.º 7
0
 public HostContextImpl(PortableObjectBoxConverter portableObjectBoxConverter, LocalServiceContainer localServiceContainer, IConcurrentSet <RemoteInvokable> remoteInvokables)
 {
     this.portableObjectBoxConverter = portableObjectBoxConverter;
     this.localServiceContainer      = localServiceContainer;
     this.remoteInvokables           = remoteInvokables;
 }
Ejemplo n.º 8
0
 public CourierFacade(IConcurrentSet <ITransport> transports, IRyuContainer container)
 {
     this.transports = transports;
     this.container  = container;
 }
Ejemplo n.º 9
0
 public RootViewModel(Window window, IConcurrentSet<Keys> pushedKeys) {
    this.window = window;
    this.pushedKeys = pushedKeys;
 }