public override async Task OnDisconnectedAsync(Exception exception) { foreach (var item in moduleSubcriptions) { await logStream.SubscribeAsync(item, false); } foreach (var item in appSubscriptions) { await logStream.SubscribeAppInsightsAsync(item, false); } await base.OnDisconnectedAsync(exception); }
public async Task Subscribe(string resource, bool monitor) { await logStream.SubscribeAsync(resource, monitor); }