public ContentPageDataForProxy(NavMenuItemData nd, string imageKey, IChannelProxy proxy, PageKind kind, UserControl page, Action <ContentPageData> clickAction = null) : base(nd, "", imageKey, kind, page, clickAction) { _proxy = proxy; _proxy.NameChanged += _proxy_NameChanged; this.LocalizedKey = _proxy.Name; }
// Token: 0x060003AE RID: 942 RVA: 0x00018610 File Offset: 0x00016810 public PollingController(IChannelProxy <IPollingControllerService> channel) { if (channel == null) { throw new ArgumentNullException("channel"); } this.channel = channel; }
public RabbitChannel(IChannelProxy proxy, IMessageSerializer serializer, ChannelDefinition definition, IDispatcher dispatcher) { Definition = definition; Proxy = proxy; Serializer = serializer; MessageDispatcher = dispatcher; }
public ProxyChannelViewData(IChannelProxy chProxy) { IsOpen = false; ChannelProxy = chProxy ?? throw new ArgumentNullException("chProxy must be not null."); Path = ChannelProxy.Path; Name = this.ToString(); PropertyChanged += ProxyChannelViewData_PropertyChanged; chProxy.NameChanged += ChProxy_NameChanged; }
public RabbitQueueListener(IChannelProxy proxy, IDispatcher dispatch, RabbitEndpoint endpoint) { Serializer = Assimilate.GetInstanceOf(endpoint.SerializerType) as IMessageSerializer; Loop = new EventLoop(); Loop.Start(8); Running = true; Proxy = proxy; Dispatch = dispatch; RabbitEndpoint = endpoint; proxy.InitConsumer(this); }
public void Initialize(string consumerTag, IBasicProperties properties, ulong deliveryTag, string exchange, IChannelProxy proxy, bool redelivered, string routingKey) { ConsumerTag = consumerTag; CorrelationId = properties.CorrelationId; DeliveryTag = deliveryTag; Exchange = exchange; MessageId = Guid.Parse(properties.MessageId); Proxy = proxy; Redelivered = redelivered; ReplyToExchange = properties.ReplyToAddress.ExchangeName; ReplyToKey = properties.ReplyToAddress.RoutingKey; RoutingKey = routingKey; Position = (long)properties.Headers["Position"]; Sequence = (long)properties.Headers["Sequence"]; SequenceEnd = (bool)properties.Headers["SequenceEnd"]; TimeStamp = properties.Timestamp.UnixTime.FromUnixTimestamp(); }
public void Initialize( string consumerTag, IBasicProperties properties, ulong deliveryTag, string exchange, IChannelProxy proxy, bool redelivered, string routingKey ) { ConsumerTag = consumerTag; CorrelationId = properties.CorrelationId; DeliveryTag = deliveryTag; Exchange = exchange; MessageId = Guid.Parse( properties.MessageId ); Proxy = proxy; Redelivered = redelivered; ReplyToExchange = properties.ReplyToAddress.ExchangeName; ReplyToKey = properties.ReplyToAddress.RoutingKey; RoutingKey = routingKey; Position = (long) properties.Headers["Position"]; Sequence = (long) properties.Headers["Sequence"]; SequenceEnd = (bool) properties.Headers["SequenceEnd"]; TimeStamp = properties.Timestamp.UnixTime.FromUnixTimestamp(); }
/// <summary>GUARDED by ChannelList</summary> /// <param name="proxy">The channel to close.</param> private void LogicalClose(IChannelProxy proxy) { if (this.target != null && !this.target.IsOpen) { lock (this.targetMonitor) { if (this.target != null && !this.target.IsOpen) { this.target = null; return; } } } // Allow for multiple close calls... if (!this.channelList.Contains(proxy)) { Logger.Trace(m => m("Returning cached Channel: {0}", this.target)); this.channelList.AddLast(proxy); } }
public RabbitEnvelope(string consumerTag, IBasicProperties properties, ulong deliveryTag, string exchange, IChannelProxy proxy, bool redelivered, string routingKey, byte[] body) { ByteStream = body; Initialize(consumerTag, properties, deliveryTag, exchange, proxy, redelivered, routingKey); }
public RabbitEnvelope( string consumerTag, IBasicProperties properties, ulong deliveryTag, string exchange, IChannelProxy proxy, bool redelivered, string routingKey, byte[] body ) { ByteStream = body; Initialize( consumerTag, properties, deliveryTag, exchange, proxy, redelivered, routingKey ); }
public RabbitQueueListener( IChannelProxy proxy, IDispatcher dispatch, RabbitEndpoint endpoint ) { Serializer = Assimilate.GetInstanceOf(endpoint.SerializerType) as IMessageSerializer; Loop = new EventLoop(); Loop.Start( 8 ); Running = true; Proxy = proxy; Dispatch = dispatch; RabbitEndpoint = endpoint; proxy.InitConsumer( this ); }