示例#1
0
 public XAppContainerControl(IUnhandledExceptionObserver unhandledExceptionObserver = default)
 {
     _configuration =
         new DisposableLazy <IXAppContainerControlConfiguration>(
             factory:
             () => {
         // TODO: Put strings into the resources.
         //
         RequireConfiguration(configuration: out var locConfiguration);
         if (locConfiguration is null)
         {
             throw new EonException(message: $"No configuration provided for this component (see method '{nameof(RequireConfiguration)}').{Environment.NewLine}\tComponent:{this.FmtStr().GNLI2()}");
         }
         return(locConfiguration);
     },
             ownsValue: false);
     P_CtorInitializer(unhandledExceptionObserver: unhandledExceptionObserver);
 }