Exemple #1
0
 public ServiceConnectionParams(Udbus.Core.IRegisterSignalHandlers registerSignalHandlers,
                                Udbus.Core.IStoppableUdbusMessageVisitor signalVisitor,
                                Udbus.Core.DbusMessageReceiverPool receiverPool,
                                Udbus.Core.IUdbusSerialNumberManager serialManager)
     : this(DefaultConnection(), registerSignalHandlers, signalVisitor, receiverPool, serialManager)
 {
 }
Exemple #2
0
 public ServiceConnectionParams(Udbus.Serialization.IUdbusTransport connection,
                                Udbus.Core.IRegisterSignalHandlers registerSignalHandlers,
                                Udbus.Core.IStoppableUdbusMessageVisitor signalVisitor,
                                Udbus.Core.DbusMessageReceiverPool receiverPool,
                                Udbus.Core.IUdbusSerialNumberManager serialManager)
     : this(connection, InitializeConnectorFromConnection(connection, serialManager, receiverPool), registerSignalHandlers, signalVisitor, receiverPool, serialManager)
 {
 }
Exemple #3
0
 private ServiceConnectionParams(Udbus.Serialization.IUdbusTransport connection,
                                 ConstructorConnectorArgs connectorArgs,
                                 Udbus.Serialization.IUdbusTransport signalConnection,
                                 Udbus.Core.IRegisterSignalHandlers registerSignalHandlers,
                                 Udbus.Core.IStoppableUdbusMessageVisitor signalVisitor,
                                 Udbus.Core.DbusMessageReceiverPool receiverPool,
                                 Udbus.Core.IUdbusSerialNumberManager serialManager)
     : this(connection, connectorArgs, signalConnection, InitializeSignalConnector(connection, connectorArgs, signalConnection, serialManager, receiverPool)
            , registerSignalHandlers, signalVisitor, receiverPool, serialManager)
 {
 }
Exemple #4
0
 public VisitorThreadInfo(Udbus.Serialization.UdbusConnector connector,
                          Udbus.Core.IUdbusMessageVisitor visitor,
                          Udbus.Core.DbusMessageReceiverPool pool,
                          System.Threading.EventWaitHandle stop,
                          System.IO.TextWriter output)
 {
     this.connector = connector;
     this.visitor   = visitor;
     this.pool      = pool;
     this.stop      = stop;
     this.output    = output;
 }
Exemple #5
0
 public ServiceConnectionParams(Udbus.Serialization.IUdbusTransport connection,
                                Udbus.Serialization.UdbusConnector connector,
                                string name,
                                Udbus.Serialization.IUdbusTransport signalConnection,
                                Udbus.Core.IRegisterSignalHandlers registerSignalHandlers,
                                Udbus.Core.IStoppableUdbusMessageVisitor signalVisitor,
                                Udbus.Core.DbusMessageReceiverPool receiverPool,
                                Udbus.Core.IUdbusSerialNumberManager serialManager)
     : this(connection, new ConstructorConnectorArgs(connector, name)
            , signalConnection, registerSignalHandlers, signalVisitor, receiverPool, serialManager)
 {
 }
Exemple #6
0
        static private ConstructorConnectorArgs InitializeConnectorFromConnection(Udbus.Serialization.IUdbusTransport connection
                                                                                  , Udbus.Core.IUdbusSerialNumberManager serialManager
                                                                                  , Udbus.Core.DbusMessageReceiverPool receiverPool)
        {
            // We're going to throw away the name.
            string name;

            Udbus.Serialization.UdbusConnector createConnector = Udbus.Serialization.UdbusConnector.CreateHelloed(connection, serialManager.GetNext(), out name,
                                                                                                                  MakeHelloRecvDelegate(receiverPool)
                                                                                                                  );
            //Udbus.Serialization.UdbusConnector createConnector = Udbus.Serialization.UdbusConnector.CreateHelloed(out name, connection, serialManager, receiverPool);
            return(new ConstructorConnectorArgs(createConnector, name));
        }
Exemple #7
0
 private ServiceConnectionParams(Udbus.Serialization.IUdbusTransport connection,
                                 ConstructorConnectorArgs connectorArgs,
                                 Udbus.Core.IRegisterSignalHandlers registerSignalHandlers,
                                 Udbus.Core.IStoppableUdbusMessageVisitor signalVisitor,
                                 Udbus.Core.DbusMessageReceiverPool receiverPool,
                                 Udbus.Core.IUdbusSerialNumberManager serialManager)
     : base(connection, connectorArgs.connector)
 {
     this.Name                   = connectorArgs.name;
     this.SignalName             = this.Name;
     this.RegisterSignalHandlers = registerSignalHandlers;
     this.SignalVisitor          = signalVisitor;
     this.ReceiverPool           = receiverPool;
     this.SerialManager          = serialManager;
 }
Exemple #8
0
        static private ConstructorConnectorArgs InitializeSignalConnector(Udbus.Serialization.IUdbusTransport connection, ConstructorConnectorArgs args,
                                                                          Udbus.Serialization.IUdbusTransport connectionSignal
                                                                          , Udbus.Core.IUdbusSerialNumberManager serialManager
                                                                          , Udbus.Core.DbusMessageReceiverPool receiverPool)
        {
            ConstructorConnectorArgs signalArgs;

            if (object.ReferenceEquals(connection, connectionSignal))
            {
                signalArgs = args;
            }
            else
            {
                signalArgs = InitializeConnectorFromConnection(connectionSignal, serialManager, receiverPool);
            }

            return(signalArgs);
        }
Exemple #9
0
 public VisitorThreadInfo(Udbus.Serialization.UdbusConnector connector,
     Udbus.Core.IUdbusMessageVisitor visitor,
     Udbus.Core.DbusMessageReceiverPool pool,
     System.Threading.EventWaitHandle stop,
     System.IO.TextWriter output)
 {
     this.connector = connector;
     this.visitor = visitor;
     this.pool = pool;
     this.stop = stop;
     this.output = output;
 }
Exemple #10
0
 public PoolVisitor(Udbus.Core.DbusMessageReceiverPool receiverPool)
 {
     this.receiverPool = receiverPool;
 }
Exemple #11
0
 private static ConstructorPoolArgs DefaultPoolArgs()
 {
     Udbus.Core.SignalVisitor           signalVisitor = DefaultRegisterSignalHandlers();
     Udbus.Core.DbusMessageReceiverPool pool          = DefaultReceiverPool(signalVisitor);
     return(new ConstructorPoolArgs(pool, signalVisitor));
 }
Exemple #12
0
 internal ConstructorPoolArgs(Udbus.Core.DbusMessageReceiverPool receiverPool, Udbus.Core.SignalVisitor signalVisitor)
 {
     this.receiverPool  = receiverPool;
     this.signalVisitor = signalVisitor;
 }
Exemple #13
0
 public PoolVisitor(Udbus.Core.DbusMessageReceiverPool receiverPool)
 {
     this.receiverPool = receiverPool;
 }