Ejemplo n.º 1
0
        /// <summary>
        /// Constructor for the Application object.
        /// </summary>
        public App()
        {
            ET.Initialize("YOUR_API_KEY");
            ETSettings.SaveExceptionsLocally = true;
            ETSettings.SendMode = ESendMode.OnDemand;

            // Global handler for uncaught exceptions.
            UnhandledException += Application_UnhandledException;

            // Show graphics profiling information while debugging.
            if (Debugger.IsAttached)
            {
                // Display the current frame rate counters.
                Current.Host.Settings.EnableFrameRateCounter = true;

                // Show the areas of the app that are being redrawn in each frame.
                //Application.Current.Host.Settings.EnableRedrawRegions = true;

                // Enable non-production analysis visualization mode,
                // which shows areas of a page that are being GPU accelerated with a colored overlay.
                //Application.Current.Host.Settings.EnableCacheVisualization = true;
            }

            // Standard Silverlight initialization
            InitializeComponent();

            // Phone-specific initialization
            InitializePhoneApplication();
        }
 public void ApplyDispatchBehavior(ServiceDescription serviceDescription, ServiceHostBase serviceHostBase)
 {
     ET.Initialize("YOUR_API_KEY");
     foreach (ChannelDispatcher channelDispatcher in serviceHostBase.ChannelDispatchers)
     {
         channelDispatcher.ErrorHandlers.Add(this);
     }
 }
 private static void Main()
 {
     ET.Initialize("YOUR_API_KEY");
     ETSettings.SendMode = ESendMode.OnDemand;
     XmlConfigurator.Configure();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new ExceptionGeneratorForm());
 }
Ejemplo n.º 4
0
        // Constructor
        public MainPage()
        {
            InitializeComponent();

            ET.Initialize("YOUR_API_KEY");
        }