public ServiceConnectionParams(Udbus.Core.IRegisterSignalHandlers registerSignalHandlers, Udbus.Core.IStoppableUdbusMessageVisitor signalVisitor, Udbus.Core.DbusMessageReceiverPool receiverPool, Udbus.Core.IUdbusSerialNumberManager serialManager) : this(DefaultConnection(), registerSignalHandlers, signalVisitor, receiverPool, serialManager) { }
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) { }
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) { }
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; }
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) { }
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)); }
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; }
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); }
public PoolVisitor(Udbus.Core.DbusMessageReceiverPool receiverPool) { this.receiverPool = receiverPool; }
private static ConstructorPoolArgs DefaultPoolArgs() { Udbus.Core.SignalVisitor signalVisitor = DefaultRegisterSignalHandlers(); Udbus.Core.DbusMessageReceiverPool pool = DefaultReceiverPool(signalVisitor); return(new ConstructorPoolArgs(pool, signalVisitor)); }
internal ConstructorPoolArgs(Udbus.Core.DbusMessageReceiverPool receiverPool, Udbus.Core.SignalVisitor signalVisitor) { this.receiverPool = receiverPool; this.signalVisitor = signalVisitor; }