Esempio n. 1
0
        public ShellController([NotNull] UiContext uiContext, [NotNull] IDashboardService dashboardService, IPersistApplicationState statePersistenceProvider)
        {
            if (uiContext == null) throw new ArgumentNullException(nameof(uiContext));
            if (dashboardService == null) throw new ArgumentNullException(nameof(dashboardService));

            this.uiContext = uiContext;
            this.dashboardService = dashboardService;
            this.statePersistence = statePersistenceProvider;
            // this.persistenceOperations = persistenceOperations;
        }
        public ShellController([NotNull] UiContext uiContext, [NotNull] IDashboardService dashboardService, IPersistApplicationState statePersistenceProvider)
        {
            if (uiContext == null)
            {
                throw new ArgumentNullException(nameof(uiContext));
            }
            if (dashboardService == null)
            {
                throw new ArgumentNullException(nameof(dashboardService));
            }

            this.uiContext        = uiContext;
            this.dashboardService = dashboardService;
            this.statePersistence = statePersistenceProvider;
            // this.persistenceOperations = persistenceOperations;
        }
Esempio n. 3
0
 private void ConstructUiContext(IContainer container)
 {
     UiContext = container.Resolve<UiContext>();
     UiContext.ShellController = container.Resolve<ShellController>();
 }
 private void ConstructUiContext(IContainer container)
 {
     UiContext = container.Resolve <UiContext>();
     UiContext.ShellController = container.Resolve <ShellController>();
 }