public Task <Acknowledgement> HandleAsync(string messageId, object message, ICorrelationContext context = null) { if (message is IStreamDescriptor descriptor) { var stream = _streamingService.GetStream(descriptor.StreamId); } return(Task.FromResult(new Acknowledgement())); }
public Task DisplayStatusAsync(object statusInformation) { if (statusInformation == null) { return(Task.CompletedTask); } //get stream if (statusInformation is IStreamDescriptor descriptor) { var stream = _streamingService.GetStream(descriptor.StreamId); } //get message body var type = statusInformation.GetType(); if (type.IsGenericType) { var messageBody = type.GetProperty(nameof(StreamDescriptor <object> .Data))?.GetValue(statusInformation); } return(Task.CompletedTask); }