Skip to content

Instantly share code, notes, and snippets.

@jongio
Created February 6, 2016 21:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jongio/9f38b214a41891989f61 to your computer and use it in GitHub Desktop.
Save jongio/9f38b214a41891989f61 to your computer and use it in GitHub Desktop.
static void Main()
{
TelemetryConfiguration.Active.InstrumentationKey = CloudConfigurationManager.GetSetting("appInsightsInstrumentationKey");
new TelemetryClient().TrackEvent("WebJobStart", new Dictionary<string, string> { { "appInsightsInstrumentationKey", TelemetryConfiguration.Active.InstrumentationKey } });
var host = new JobHost();
host.Call(typeof(Functions).GetMethod("ProcessQueueMessage"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment