示例#1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Perform any additional setup after loading the view, typically from a nib.
            Button.AccessibilityIdentifier = "Splunk>®";
            SplunkLogger spl = new SplunkLogger("http://10.80.8.76:8088/services/collector",
                                                "9658F9CB-796C-4C0B-A1EC-84CEA4B9F768", false);

            spl.EnableBatching();
            SendRandomEvents(spl);
        }
示例#2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            //Start sending random events
            SplunkLogger spl = new SplunkLogger("http://10.80.8.76:8088/services/collector",
                                                "81EBB9BA-BEAC-43AF-B482-F683CFBBE68C", false);

            spl.EnableBatching();
            SendRandomEvents(spl);
        }