コード例 #1
0
 void SetupApplicationInsights()
 {
     AI.XamarinSDK.iOS.ApplicationInsights.Init();
     ApplicationInsights.Setup(InstrumentationKey);
     ApplicationInsights.SetDebugLogEnabled(true);
     ApplicationInsights.Start();
 }
コード例 #2
0
        protected override void OnStart()
        {
            string iKey = null;

            Device.OnPlatform(
                Android: () => {
                iKey = "<YOUR-ANDROID-KEY>";
            },
                iOS: () => {
                iKey = "<YOUR-IOS-KEY>";
            }
                );
            ApplicationInsights.Setup(iKey);
            ApplicationInsights.Start();
        }
コード例 #3
0
        protected override void OnStart()
        {
            string iKey = null;

            Device.OnPlatform(
                Android: () => {
                iKey = "<YOUR-IOS-KEY>";
            },
                iOS: () => {
                iKey = "<YOUR-ANDROID-KEY>";
            }
                );
            ApplicationInsights.Setup(iKey);
            ApplicationInsights.SetDebugLogEnabled(true);
            // Set up common properties
            Dictionary <string, string> commonProperties = new Dictionary <string, string> ();

            commonProperties.Add("Common Key", "Common Property Value");
            ApplicationInsights.SetCommonProperties(commonProperties);
            ApplicationInsights.Start();
        }
コード例 #4
0
 void SetupApplicationInsights()
 {
     ApplicationInsights.Setup(InstrumentationKey);
     ApplicationInsights.SetDebugLogEnabled(true);
     ApplicationInsights.Start();
 }