Ejemplo n.º 1
0
        public async Task <IActionResult> ResetEventConsumer(string name)
        {
            var eventConsumer = await GetGrain().ResetAsync(name);

            var response = EventConsumerDto.FromEventConsumerInfo(eventConsumer.Value, this);

            return(Ok(response));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> ResetEventConsumer(string consumerName)
        {
            var eventConsumer = await GetGrain().ResetAsync(consumerName);

            var response = EventConsumerDto.FromEventConsumerInfo(eventConsumer, Resources);

            return(Ok(response));
        }
Ejemplo n.º 3
0
        public async Task <IActionResult> StopEventConsumer(string name)
        {
            var eventConsumer = await GetGrain().StopAsync(name);

            var response = EventConsumerDto.FromEventConsumerInfo(eventConsumer.Value, Resources);

            return(Ok(response));
        }