private RtecEventComm.PushConsumer RegisterConsumer(RtecEventChannelAdmin.ProxyPushSupplier supplier) { EchoEventConsumerImpl servant = new EchoEventConsumerImpl(m_logger); string objectURI = "consumer"; RemotingServices.Marshal(servant, objectURI); RtecEventComm.PushConsumer consumer = (RtecEventComm.PushConsumer)servant; // ------------------------------------------------------ // Connect as a consumer ///------------------------------------------------------ RtecEventChannelAdmin.ConsumerQOS qos = new RtecEventChannelAdmin.ConsumerQOS(); qos.is_gateway = false; qos.dependencies = new RtecEventChannelAdmin.Dependency[2]; qos.dependencies[0] = new RtecEventChannelAdmin.Dependency(); qos.dependencies[0].@event = new RtecEventComm._Event(); qos.dependencies[0][email protected] = new RtecEventData(); qos.dependencies[0][email protected]_value = 0; qos.dependencies[0][email protected] = 0; qos.dependencies[0][email protected] = new byte[1]; qos.dependencies[0][email protected] = new RtecEventComm.EventHeader(); qos.dependencies[0][email protected] = 9; qos.dependencies[0][email protected] = 0; qos.dependencies[0].rt_info = 0; qos.dependencies[1] = new RtecEventChannelAdmin.Dependency(); qos.dependencies[1].@event = new RtecEventComm._Event(); qos.dependencies[1][email protected] = new RtecEventData(); qos.dependencies[1][email protected]_value = 0; //qos.Dependencies[1].Event.Data.AnyValue.InsertLong(0); qos.dependencies[1][email protected] = 0; qos.dependencies[1][email protected] = new byte[1]; qos.dependencies[1][email protected] = new RtecEventComm.EventHeader(); qos.dependencies[1][email protected] = 17; qos.dependencies[1][email protected] = 1; qos.dependencies[1].rt_info = 0; supplier.connect_push_consumer(consumer, qos); return(consumer); }
private RtecEventComm.PushConsumer RegisterConsumer(RtecEventChannelAdmin.ProxyPushSupplier supplier) { EchoEventConsumerImpl servant = new EchoEventConsumerImpl(m_logger); string objectURI = "consumer"; RemotingServices.Marshal(servant, objectURI); RtecEventComm.PushConsumer consumer = (RtecEventComm.PushConsumer)servant; // ------------------------------------------------------ // Connect as a consumer ///------------------------------------------------------ RtecEventChannelAdmin.ConsumerQOS qos = new RtecEventChannelAdmin.ConsumerQOS(); qos.is_gateway = false; qos.dependencies = new RtecEventChannelAdmin.Dependency[2]; qos.dependencies[0] = new RtecEventChannelAdmin.Dependency(); qos.dependencies[0].@event = new RtecEventComm._Event(); qos.dependencies[0][email protected] = new RtecEventData(); qos.dependencies[0][email protected]_value = 0; qos.dependencies[0][email protected] = 0; qos.dependencies[0][email protected] = new byte[1]; qos.dependencies[0][email protected] = new RtecEventComm.EventHeader(); qos.dependencies[0][email protected] = 9; qos.dependencies[0][email protected] = 0; qos.dependencies[0].rt_info = 0; qos.dependencies[1] = new RtecEventChannelAdmin.Dependency(); qos.dependencies[1].@event = new RtecEventComm._Event(); qos.dependencies[1][email protected] = new RtecEventData(); qos.dependencies[1][email protected]_value = 0; //qos.Dependencies[1].Event.Data.AnyValue.InsertLong(0); qos.dependencies[1][email protected] = 0; qos.dependencies[1][email protected] = new byte[1]; qos.dependencies[1][email protected] = new RtecEventComm.EventHeader(); qos.dependencies[1][email protected] = 17; qos.dependencies[1][email protected] = 1; qos.dependencies[1].rt_info = 0; supplier.connect_push_consumer(consumer, qos); return consumer; }