Baconit.App.App C# (CSharp) Method

App() public method

Initializes the singleton application object. This is the first line of authored code executed, and as such is the logical equivalent of main() or WinMain().
public App ( ) : BaconBackend
return BaconBackend
        public App()
        {

            //bool result = Windows.UI.ViewManagement.ApplicationViewScaling.TrySetDisableLayoutScaling(true);

            // Setup the exception handler first
            this.UnhandledException += OnUnhandledException;

            // Now setup the baconman
            BaconMan = new BaconManager(false);

            // Now telemetry
            Microsoft.ApplicationInsights.WindowsAppInitializer.InitializeAsync(
                Microsoft.ApplicationInsights.WindowsCollectors.Metadata |
                Microsoft.ApplicationInsights.WindowsCollectors.UnhandledException |
                Microsoft.ApplicationInsights.WindowsCollectors.Session);

            // Init the app
            this.InitializeComponent();

            // Register for events.
            this.Suspending += OnSuspending_Fired;
            this.Resuming += OnResuming_Fired;
        }