コード例 #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;
        }
コード例 #2
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;
        }
コード例 #3
0
 private void ConstructUiContext(IContainer container)
 {
     UiContext = container.Resolve<UiContext>();
     UiContext.ShellController = container.Resolve<ShellController>();
 }
コード例 #4
0
 private void ConstructUiContext(IContainer container)
 {
     UiContext = container.Resolve <UiContext>();
     UiContext.ShellController = container.Resolve <ShellController>();
 }