Ejemplo n.º 1
0
        protected override async Task RunAsync(CancellationToken cancellationToken)
        {
            _log.LogInformation("Start");
            await _instance.StartAsync(_asyncBusBroker);

            _actionsSubscription = await _actionsEntity.SubscribeAsync(OnActionReceived);
        }
Ejemplo n.º 2
0
        public async Task <string> OpenAsync(CancellationToken cancellationToken)
        {
            _log.LogInformation($"Open Fabric Async Bus Listener for '{_asyncBusEntity.EntityId}'");

            _asyncBusEntitySubscription = await _asyncBusEntity.SubscribeAsync(OnMessage);

            return(_asyncBusEntitySubscription.SubscriptionId);
        }