示例#1
0
        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);
        }
示例#2
0
 public async Task SubscribeAppInsights(string resource, bool monitor)
 {
     await logStream.SubscribeAppInsightsAsync(resource, monitor);
 }