OFW.BingBackground/Program.cs
/// <summary>
/// The main entry point for the application.
/// </summary>
The main entry point for the application.
The main entry point for the application .
[STAThread]
        public static int Main()
        {
            ApplicationManagerBase.SetApplicationManager(new WaterAppManager());
            WaterApplicationManager.GetInstance().SetParentFormSurrogateDelegate(
                new ParentFormSurrogateDelegate((fm) =>
                {
                    return new BingBackgroundLayerForm(fm);
                }));
            OpenFlowsWater.StartSession(WaterProductLicenseType.WaterCAD);
            string logTemplate = "{Timestamp:MM-dd HH:mm:ss.fff} [{Level}] {Message}{NewLine}{Exception}";
            var logLevelSwitch = new LoggingLevelSwitch();
            logLevelSwitch.MinimumLevel = LogEventLevel.Debug;
            Log.Logger = new LoggerConfiguration()
                .MinimumLevel.ControlledBy(logLevelSwitch)
                .WriteTo.Console(outputTemplate: logTemplate)
                .CreateLogger();
            WaterApplicationManager.GetInstance().Start(true);
            WaterApplicationManager.GetInstance().Stop();
            return 0;
        }
[ STAThread ] public static int Main ( ) { ApplicationManagerBase . SetApplicationManager ( new WaterAppManager ( ) ) ; WaterApplicationManager . GetInstance ( ) . SetParentFormSurrogateDelegate ( new ParentFormSurrogateDelegate ( ( fm ) => { return new BingBackgroundLayerForm ( fm ) ; } ) ) ; OpenFlowsWater . StartSession ( WaterProductLicenseType . WaterCAD ) ; string logTemplate = " " ; var logLevelSwitch = new LoggingLevelSwitch ( ) ; logLevelSwitch . MinimumLevel = LogEventLevel . Debug ; Log . Logger = new LoggerConfiguration ( ) . MinimumLevel . ControlledBy ( logLevelSwitch ) . WriteTo . Console ( outputTemplate : logTemplate ) . CreateLogger ( ) ; WaterApplicationManager . GetInstance ( ) . Start ( true ) ; WaterApplicationManager . GetInstance ( ) . Stop ( ) ; return 0 ; }
The main entry point for the application.
The main entry point for the application .
// Set up the logging mechanism            