コード例 #1
0
ファイル: DbusService.cs プロジェクト: rneilturner/win-tools
 public ServiceConnectionParams(Udbus.Core.IRegisterSignalHandlers registerSignalHandlers,
                                Udbus.Core.IStoppableUdbusMessageVisitor signalVisitor,
                                Udbus.Core.DbusMessageReceiverPool receiverPool,
                                Udbus.Core.IUdbusSerialNumberManager serialManager)
     : this(DefaultConnection(), registerSignalHandlers, signalVisitor, receiverPool, serialManager)
 {
 }
コード例 #2
0
ファイル: DbusService.cs プロジェクト: rneilturner/win-tools
 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)
 {
 }
コード例 #3
0
ファイル: DbusService.cs プロジェクト: rneilturner/win-tools
 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)
 {
 }
コード例 #4
0
ファイル: DbusUtils.cs プロジェクト: rneilturner/win-tools
 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;
 }
コード例 #5
0
ファイル: DbusService.cs プロジェクト: rneilturner/win-tools
 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)
 {
 }
コード例 #6
0
ファイル: DbusService.cs プロジェクト: rneilturner/win-tools
        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));
        }
コード例 #7
0
ファイル: DbusService.cs プロジェクト: rneilturner/win-tools
 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;
 }
コード例 #8
0
ファイル: DbusService.cs プロジェクト: rneilturner/win-tools
        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);
        }
コード例 #9
0
ファイル: DbusUtils.cs プロジェクト: rneilturner/win-tools
 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;
 }
コード例 #10
0
ファイル: PoolVisitor.cs プロジェクト: jean-edouard/win-tools
 public PoolVisitor(Udbus.Core.DbusMessageReceiverPool receiverPool)
 {
     this.receiverPool = receiverPool;
 }
コード例 #11
0
ファイル: DbusService.cs プロジェクト: rneilturner/win-tools
 private static ConstructorPoolArgs DefaultPoolArgs()
 {
     Udbus.Core.SignalVisitor           signalVisitor = DefaultRegisterSignalHandlers();
     Udbus.Core.DbusMessageReceiverPool pool          = DefaultReceiverPool(signalVisitor);
     return(new ConstructorPoolArgs(pool, signalVisitor));
 }
コード例 #12
0
ファイル: DbusService.cs プロジェクト: rneilturner/win-tools
 internal ConstructorPoolArgs(Udbus.Core.DbusMessageReceiverPool receiverPool, Udbus.Core.SignalVisitor signalVisitor)
 {
     this.receiverPool  = receiverPool;
     this.signalVisitor = signalVisitor;
 }
コード例 #13
0
 public PoolVisitor(Udbus.Core.DbusMessageReceiverPool receiverPool)
 {
     this.receiverPool = receiverPool;
 }