Example #1
0
		public App() {
			this.Startup += this.Application_Startup;
			this.UnhandledException += this.Application_UnhandledException;
			WebContext webcontext = new WebContext();
			webcontext.Authentication = new System.ServiceModel.DomainServices.Client.ApplicationServices.WindowsAuthentication();

			LoggerContext context = new LoggerContext();
			Logging.Logger.init(context);

			this.ApplicationLifetimeObjects.Add(webcontext);
			
			webcontext.Authentication.LoadUser(OnLoadUser_Completed, null);
			
			InitializeComponent();
		}
Example #2
0
		public static void init(LoggerContext context) {
			logger.loggerContext = context;
		}