This sample shows how to collect streaming xEvents and profiler traces with C#. Update the server information in Program.cs to connect to your Azure Analysis Services instance. The current version of this sample can be found at: https://github.com/Microsoft/Analysis-Services