/// <summary> /// Creates a queue receiver for the specified queueId /// </summary> /// <param name="queueId"></param> /// <returns></returns> public IQueueAdapterReceiver CreateReceiver(QueueId queueId) { var dimensions = new ReceiverMonitorDimensions(queueId.ToString()); var receiverLogger = this.loggerFactory.CreateLogger($"{typeof(MemoryAdapterReceiver<TSerializer>).FullName}.{this.Name}.{queueId}"); var receiverMonitor = this.ReceiverMonitorFactory(dimensions, this.telemetryProducer); IQueueAdapterReceiver receiver = new MemoryAdapterReceiver <TSerializer>(GetQueueGrain(queueId), receiverLogger, this.serializer, receiverMonitor); return(receiver); }
/// <summary> /// Creates a quere receiver for the specificed queueId /// </summary> /// <param name="queueId"></param> /// <returns></returns> public IQueueAdapterReceiver CreateReceiver(QueueId queueId) { var dimensions = new ReceiverMonitorDimensions(this.sharedDimensions, queueId.ToString()); var receiverLogger = logger.GetSubLogger(typeof(MemoryAdapterReceiver <TSerializer>).Name); var receiverMonitor = this.ReceiverMonitorFactory(dimensions, receiverLogger.GetSubLogger(typeof(IQueueAdapterReceiverMonitor).Name)); IQueueAdapterReceiver receiver = new MemoryAdapterReceiver <TSerializer>(GetQueueGrain(queueId), receiverLogger, this.serializer, receiverMonitor); return(receiver); }
/// <summary> /// Creates a quere receiver for the specificed queueId /// </summary> /// <param name="queueId"></param> /// <returns></returns> public IQueueAdapterReceiver CreateReceiver(QueueId queueId) { IQueueAdapterReceiver receiver = new MemoryAdapterReceiver <TSerializer>(GetQueueGrain(queueId), logger, this.serializer); return(receiver); }