Ejemplo n.º 1
0
 private static void Initalise()
 {
     if (_Manager == null)
     {
         _Manager = new ServiceManager();
     }
 }
Ejemplo n.º 2
0
 public void InitializeServices(IServiceManager serviceManager)
 {
     serviceManager.RegisterSingleton<IAppConfigDecryptionService, AppConfigDecryptionService>(d =>
     {
         d.Password = "******";
         d.Salt = "somesalt";
     });
 }
Ejemplo n.º 3
0
        public SourcePageViewModel(IServiceManager serviceManager, IDataManager dataManager, ILoginManager loginManager)
        {
            ServiceManager = serviceManager;
            DataManager = dataManager;
            LoginManager = loginManager;

            SourceList = new ObservableCollection<SourceDTO>();
        }
        protected void StartNetworkServices(CloudMode cloudMode = CloudMode.MQTT)
        {
            if (cloudMode == CloudMode.None) { return; }

            ConfigurationManager.CloudConnection = cloudMode;
            bool connected = true;
            Util.StartNtpTimeService();  // this is a hack workaround for system time sync issue on W10 for IoT
            sm = Util.StartNetworkServices(connected);
        }
Ejemplo n.º 5
0
 public static string GenerateJavaScriptWrapper(IServiceManager svc)
 {
     var methods = (from method in GetOperationContractMethods(svc.GetType(), ExcludedServiceManagerJsMethodNames)
      let friendlyName = method.Name.StartsWith("get_") ? method.Name.Substring(4) : method.Name
      select string.Format("\t{0}: function({1}) {{ {2}__processJsonResponse(__svc_jsonCall('{3}', __getJsonArgs(arguments))); }}",
         friendlyName, WriteArgumentsList(method), method.ReturnType == typeof(void) ? "" : "return ", method.Name))
         .Concat("," + Environment.NewLine);
     return string.Concat("var ServiceManager = {", Environment.NewLine, methods, Environment.NewLine, "};", Environment.NewLine);
 }
Ejemplo n.º 6
0
 //Function to check on startup
 public AutoDeployManager(IServiceManager i_ServiceManager, ILogManager i_LogManager, IAppConfig i_AppConfig, IFileUtilities i_FileUtilities, ICMDUtilities i_CMDUtilities)
 {
     m_ServiceManager = i_ServiceManager;
     m_FileUtilities = i_FileUtilities;
     m_CMDUtilities = i_CMDUtilities;
     m_LogManager = i_LogManager;
     m_AppConfig = i_AppConfig.GetInstance();
     string netUsePath = string.Format("NET USE {0} /USER:{1} {2}", m_AppConfig.RemotePath, m_AppConfig.RemotePathUserName, m_AppConfig.RemotePathPassword);
     m_CMDUtilities.ExecuteCmdCommand(netUsePath);
 }
Ejemplo n.º 7
0
        // protected AdaFruitMatrixRun matrix = new AdaFruitMatrixRun(new Ht16K33(), "name");
        public IoTServices(string yourName = "", bool connected = true, bool hat = true)
            : base(hat)
        {
            Util.SetName(yourName);
            if (connected) {
                sm = Util.StartNetworkServices(connected);

                // this is a hack workaround for system time sync issue on W10 for IoT Beta
                Util.GetTime();
            }
        }
Ejemplo n.º 8
0
        public RssDataManager(IStorageManager storageManager, IServiceManager serviceManager, ILoginManager loginManager)
        {
            ServiceManager = serviceManager;
            StorageManager = storageManager;
            LoginManager = loginManager;

            CategoryList = new List<CategoryDTO>();
            SourceList = new List<SourceDTO>();

            LoginManager.UserChanged += SetCategoryList;

            SetCategoryList();
        }
Ejemplo n.º 9
0
        protected override void OnStartup(StartupEventArgs e)
        {
            serviceManager = new ServiceManager();

            var mainWindow = new MainWindow
            {
                DataContext = serviceManager.MainViewModel
            };

            mainWindow.Closing += (sender, eventArgs) =>
            {
                var messenger = serviceManager.Get<IMessageService>();
                messenger.Send(new ApplicationMessage
                {
                    MessageType = MessageType.Shutdown
                });
            };

            mainWindow.Show();
        }
Ejemplo n.º 10
0
 public void InitializeServices(IServiceManager serviceManager)
 {
     serviceManager.RegisterSingleton<IConsoleLoggerService, LoggerService>();
 }
 public SearchResultViewModel(INavigationService navigationService, IServiceManager serviceManager)
 {
     _navigationService = navigationService;
     _serviceManager = serviceManager;
 }
        public override List <IView> GetViews(ISiteSetting siteSetting, Folder folder)
        {
            IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType);

            return(serviceManager.GetViews(siteSetting, folder));
        }
 public UserRoleController(IServiceManager serviceManager, ILogger <BaseController> logger) : base(serviceManager, logger)
 {
 }
Ejemplo n.º 14
0
 public PostRouteWorkflowData(IServiceManager serviceManager, HttpListenerContext context, HtmlResponse htmlResponse)
 {
     ServiceManager = serviceManager;
     Context = context;
     HtmlResponse = htmlResponse;
 }
Ejemplo n.º 15
0
 public virtual void Initialize(IServiceManager svcMgr)
 {
     ServiceManager = svcMgr;
 }
Ejemplo n.º 16
0
 protected Base(IServiceManager sm)
 {
     _sm = sm;
     _sm?.AddService(this);
 }
Ejemplo n.º 17
0
 public CommentServiceRepository(IServiceManager serviceManager)
 {
     this.serviceManager = serviceManager;
 }
Ejemplo n.º 18
0
 public void InitializeServices(IServiceManager serviceManager)
 {
     serviceManager.RegisterSingleton <IFlowSharpService, FlowSharpService>();
 }
Ejemplo n.º 19
0
        public void Initialize()
        {
            // Force load of the DLL
            var p = FirebirdSql.Data.FirebirdClient.FbCharset.Ascii;

            TestApplicationContext.TestAssembly = typeof(TestMessageParsing).Assembly;
            TestApplicationContext.Initialize(TestContext.CurrentContext.TestDirectory);

            // Create the test harness device / application
            var securityDevService = ApplicationServiceContext.Current.GetService <IRepositoryService <SecurityDevice> >();
            var securityAppService = ApplicationServiceContext.Current.GetService <IRepositoryService <SecurityApplication> >();
            var metadataService    = ApplicationServiceContext.Current.GetService <IAssigningAuthorityRepositoryService>();

            this.m_serviceManager = ApplicationServiceContext.Current.GetService <IServiceManager>();

            AuthenticationContext.EnterSystemContext();

            // Create device
            var dev = new SecurityDevice()
            {
                DeviceSecret = "DEVICESECRET",
                Name         = "TEST_HARNESS|TEST"
            };

            dev.AddPolicy(PermissionPolicyIdentifiers.LoginAsService);
            securityDevService.Insert(dev);

            // Create device
            dev = new SecurityDevice()
            {
                DeviceSecret = "DEVICESECRET",
                Name         = "TEST_HARNESS|MASTER"
            };
            dev.AddPolicy(PermissionPolicyIdentifiers.LoginAsService);
            dev.AddPolicy("1.3.6.1.4.1.33349.3.1.5.9.2.6");
            securityDevService.Insert(dev);

            var app = new SecurityApplication()
            {
                Name = "TEST_HARNESS",
                ApplicationSecret = "APPLICATIONSECRET"
            };

            app.AddPolicy(PermissionPolicyIdentifiers.LoginAsService);
            app.AddPolicy(PermissionPolicyIdentifiers.UnrestrictedClinicalData);
            app.AddPolicy(PermissionPolicyIdentifiers.ReadMetadata);
            app = securityAppService.Insert(app);
            metadataService.Insert(new Core.Model.DataTypes.AssigningAuthority("TEST", "TEST", "1.2.3.4.5.6.7")
            {
                IsUnique = true,
                AssigningApplicationKey = app.Key
            });

            metadataService.Insert(new Core.Model.DataTypes.AssigningAuthority("SSN", "US Social Security Number", "2.16.840.1.113883.4.1")
            {
                IsUnique = false,
                Url      = "http://hl7.org/fhir/sid/us-ssn",
                AssigningApplicationKey = app.Key
            });

            // Add another application for security checks
            dev = new SecurityDevice()
            {
                DeviceSecret = "DEVICESECRET2",
                Name         = "TEST_HARNESS2|TEST"
            };

            dev.AddPolicy(PermissionPolicyIdentifiers.LoginAsService);
            securityDevService.Insert(dev);

            app = new SecurityApplication()
            {
                Name = "TEST_HARNESS2",
                ApplicationSecret = "APPLICATIONSECRET2"
            };

            app.AddPolicy(PermissionPolicyIdentifiers.LoginAsService);
            app.AddPolicy(PermissionPolicyIdentifiers.UnrestrictedClinicalData);
            app.AddPolicy(PermissionPolicyIdentifiers.ReadMetadata);
            securityAppService.Insert(app);
        }
Ejemplo n.º 20
0
 protected AuthorisationController(IServiceManager serviceManager) : base(serviceManager)
 {
     _controller = this;
 }
        private void setContentType(ContentType contentType)
        {
            IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(_siteSetting.SiteSettingType);

            string[] folderFieldInLimitedView = new string[] { "FileLeafRef" };

            double height = 10;

            fieldRequiredPresnet = false;
            FieldMappingsStackPanel.Children.Clear();

            //Get default mappings
            ItemPropertyMappings itemPropertyMappings = null;

            if (_folderSettings != null)
            {
                itemPropertyMappings = _folderSettings.GetItemPropertyMappings(contentType.ID);
            }

            List <Field> filtredField = contentType.Fields;

            if (_siteSetting.limitFolderEditableProperties & isFolder)
            {
                filtredField = contentType.Fields.Where(f => folderFieldInLimitedView.Contains(f.Name)).ToList();
            }

            foreach (Field field in filtredField)
            {
                if (!_displayFileName && field.Name == "FileLeafRef")
                {
                    continue;
                }

                Label label = new Label()
                {
                    Content = field.DisplayName.removeTextInsideParenthesis()
                };


                label.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
                label.VerticalAlignment   = System.Windows.VerticalAlignment.Top;
                if (field.Required && !field.ReadOnly)
                {
                    label.Foreground     = new SolidColorBrush(Colors.Red);
                    label.Content       += "*";
                    fieldRequiredPresnet = true;
                }

                label.Margin = new Thickness(0, height, 5, 0);
                FieldMappingsStackPanel.Children.Add(label);

                //if (field.ReadOnly == false)
                //{
                EditItemControl editItemControl = EditItemManager.GetEditItemControl(_webURL, field, null, contentType, _siteSetting, _rootFolder);

                editItemControl.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
                editItemControl.VerticalAlignment   = System.Windows.VerticalAlignment.Top;
                editItemControl.Margin = new Thickness(160, height, 0, 0);//



                FieldMappingsStackPanel.Children.Add(editItemControl);
                if (_properties != null && _properties.Count > 0)
                {
                    //Set default mapping value
                    ApplicationItemProperty defaultApplicationItemProperty = null;
                    if (itemPropertyMappings != null)
                    {
                        ItemPropertyMapping mapping = itemPropertyMappings.Where(m => m.ServicePropertyName == field.Name).FirstOrDefault();
                        if (mapping != null)
                        {
                            defaultApplicationItemProperty = _properties.Where(p => p.Name == mapping.ApplicationPropertyName).FirstOrDefault();
                            editItemControl.IsEnabled      = false;
                        }
                        else
                        {
                            mapping = _defaultFolderSetting.ItemPropertyMappings.Where(m => m.ServicePropertyName == field.Name).FirstOrDefault();
                            if (mapping != null)
                            {
                                defaultApplicationItemProperty = _properties.Where(p => p.Name == mapping.ApplicationPropertyName).FirstOrDefault();
                                editItemControl.IsEnabled      = false;
                            }
                        }
                    }

                    EditItems.FieldMappingControl fieldMappingControl = new EditItems.FieldMappingControl(_properties, field, defaultApplicationItemProperty);
                    fieldMappingControl.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
                    fieldMappingControl.VerticalAlignment   = System.Windows.VerticalAlignment.Top;
                    fieldMappingControl.Margin = new Thickness(350, height, 0, 0);

                    FieldMappingsStackPanel.Children.Add(fieldMappingControl);
                }

                height = height + editItemControl.GetHeight() + 5;

                if (_defaultValues != null)
                {
                    object[] args = { serviceManager, field, editItemControl };
                    Dispatcher.BeginInvoke(new setDefaultValuesDelegate(setDefaultValues), args);
                }


                //}
            }

            labelfieldRequired.Visibility = fieldRequiredPresnet ? Visibility.Visible : Visibility.Hidden;
        }
Ejemplo n.º 22
0
 public _BasePrintHandler(ICommandProcessor commandProcessor, IServiceManager serviceManager, IQueryProcessor queryProcessor)
 {
     _commandProcessor = commandProcessor;
     _serviceManager   = serviceManager;
     _queryProcessor   = queryProcessor;
 }
Ejemplo n.º 23
0
 public Derived(IServiceManager sm) : base(sm)
 {
 }
Ejemplo n.º 24
0
    public TimedEventManager(int nElapsedTime, Logging Log, IServiceManager Service)
    {
        m_nTimeToFire = nElapsedTime;

        m_Log = Log;

        m_Log.Log(Logging.LOGTYPE.DEBUG, "Attempting to create state manager");

        // We need a state manager to run
        m_CurState = new StateManager(Service);

        m_Log.Log(Logging.LOGTYPE.DEBUG, "Successfully created state manager");

    }
Ejemplo n.º 25
0
 public void InitializeServices(IServiceManager serviceManager)
 {
     serviceManager.RegisterSingleton<IPaperTrailAppLoggerService, LoggerService>();
 }
Ejemplo n.º 26
0
 // TODO: Add support for constructors with parameters
 public static IServiceManager AddService <TService, TImplementation>(this IServiceManager services)
     where TService : class
     where TImplementation : class, TService, new()
 => services.AddService(() => new TImplementation());
Ejemplo n.º 27
0
 public PivotItemViewModel(INavigationService navigationService, IServiceManager serviceManager, PageModel currentPage)
 {
     _navigationService = navigationService;
     _serviceManager = serviceManager;
     _currentPage = currentPage;
 }
Ejemplo n.º 28
0
 public void InitializeServices(IServiceManager serviceManager)
 {
     serviceManager.RegisterSingleton <ISemanticWebRouterService, WebRouterService>();
 }
Ejemplo n.º 29
0
 public AdminController(IServiceManager serviceManager)
     : base(serviceManager)
 {
 }
Ejemplo n.º 30
0
 public OrderItemListViewModel(IDataProviderFactory providerFactory, IServiceManager serviceManager)
     : base(providerFactory, serviceManager)
 {
 }
Ejemplo n.º 31
0
 public AttachController(IServiceManager serviceManager) 
     : base(serviceManager)
 {
 }
Ejemplo n.º 32
0
 public ControlController(MidgeContext context, IServiceManager serviceManager) : base(context, serviceManager)
 {
     _controlService = Services.GetService <IControlService>();
 }
Ejemplo n.º 33
0
        public PointOfInterestSkill(SkillConfiguration services, ConversationState conversationState, UserState userState, IServiceManager serviceManager = null, bool skillMode = false)
        {
            _skillMode         = skillMode;
            _services          = services ?? throw new ArgumentNullException(nameof(services));
            _userState         = userState ?? throw new ArgumentNullException(nameof(userState));
            _conversationState = conversationState ?? throw new ArgumentNullException(nameof(conversationState));
            _serviceManager    = serviceManager ?? new ServiceManager();

            _dialogs = new DialogSet(_conversationState.CreateProperty <DialogState>(nameof(DialogState)));
            _dialogs.Add(new MainDialog(_services, _conversationState, _userState, _serviceManager, _skillMode));
        }
Ejemplo n.º 34
0
 public PropertyGridController(IServiceManager serviceManager, PropertyGrid pgElement)
 {
     this.serviceManager             = serviceManager;
     this.pgElement                  = pgElement;
     pgElement.PropertyValueChanged += new PropertyValueChangedEventHandler(OnPropertyValueChanged);
 }
Ejemplo n.º 35
0
 public void InitializeServices(IServiceManager serviceManager)
 {
     serviceManager.RegisterSingleton<IWebFileResponse, WebFileResponse>();
 }
Ejemplo n.º 36
0
 public OrganizationController(IServiceManager serviceManager, ILogger <BaseController> logger) : base(serviceManager, logger)
 {
 }
Ejemplo n.º 37
0
 public void InitializeServices(IServiceManager serviceManager)
 {
     serviceManager.RegisterSingleton<IMessageBoxLoggerService, LoggerService>();
 }
Ejemplo n.º 38
0
 public FloodTool(IServiceManager services) : base(services)
 {
 }
Ejemplo n.º 39
0
 public StateManager(IServiceManager serviceManager)
 {
     m_ServiceManager = serviceManager;
 }
Ejemplo n.º 40
0
 public ItemViewModel(INavigationService navigationService, IServiceManager serviceManager)
 {
     _navigationService = navigationService;
     _serviceManager = serviceManager;
     this.DownloadPdfCommand = new RelayCommand(this.ExecuteDownloadPdfCommand);
 }
Ejemplo n.º 41
0
 public void InitializeServices(IServiceManager serviceManager)
 {
     serviceManager.RegisterSingleton<IAppConfigService, ConfigService>();
 }
Ejemplo n.º 42
0
 public LogController(IServiceManager serviceManager)
     : base(serviceManager)
 {
 }
Ejemplo n.º 43
0
        public UpdateEventDialog(
            BotSettings settings,
            BotServices services,
            ResponseManager responseManager,
            ConversationState conversationState,
            IServiceManager serviceManager,
            IBotTelemetryClient telemetryClient,
            MicrosoftAppCredentials appCredentials)
            : base(nameof(UpdateEventDialog), settings, services, responseManager, conversationState, serviceManager, telemetryClient, appCredentials)
        {
            TelemetryClient = telemetryClient;

            var updateEvent = new WaterfallStep[]
            {
                GetAuthToken,
                AfterGetAuthToken,
                CheckFocusedEvent,
                GetNewEventTime,
                ConfirmBeforeUpdate,
                UpdateEventTime
            };

            var findEvent = new WaterfallStep[]
            {
                SearchEventsWithEntities,
                GetEventsPrompt,
                AfterGetEventsPrompt,
                AddConflictFlag,
                ChooseEvent
            };

            var chooseEvent = new WaterfallStep[]
            {
                ChooseEventPrompt,
                AfterChooseEvent
            };

            var getNewStartTime = new WaterfallStep[]
            {
                GetNewEventTimePrompt,
                AfterGetNewEventTimePrompt,
            };

            // Define the conversation flow using a waterfall model.
            AddDialog(new WaterfallDialog(Actions.UpdateEventTime, updateEvent)
            {
                TelemetryClient = telemetryClient
            });
            AddDialog(new WaterfallDialog(Actions.FindEvent, findEvent)
            {
                TelemetryClient = telemetryClient
            });
            AddDialog(new WaterfallDialog(Actions.ChooseEvent, chooseEvent)
            {
                TelemetryClient = telemetryClient
            });
            AddDialog(new WaterfallDialog(Actions.GetNewStartTime, getNewStartTime)
            {
                TelemetryClient = telemetryClient
            });

            // Set starting dialog for component
            InitialDialogId = Actions.UpdateEventTime;
        }
Ejemplo n.º 44
0
        public ShowEmailDialog(
            BotSettings settings,
            BotServices services,
            ResponseManager responseManager,
            ConversationState conversationState,
            DeleteEmailDialog deleteEmailDialog,
            ReplyEmailDialog replyEmailDialog,
            ForwardEmailDialog forwardEmailDialog,
            IServiceManager serviceManager,
            IBotTelemetryClient telemetryClient,
            MicrosoftAppCredentials appCredentials)
            : base(nameof(ShowEmailDialog), settings, services, responseManager, conversationState, serviceManager, telemetryClient, appCredentials)
        {
            TelemetryClient = telemetryClient;

            var showEmail = new WaterfallStep[]
            {
                IfClearContextStep,
                GetAuthToken,
                AfterGetAuthToken,
                Display
            };

            var readEmail = new WaterfallStep[]
            {
                ReadEmail,
                Reshow
            };

            var deleteEmail = new WaterfallStep[]
            {
                DeleteEmail,
                Reshow
            };

            var forwardEmail = new WaterfallStep[]
            {
                ForwardEmail,
                Reshow
            };

            var replyEmail = new WaterfallStep[]
            {
                ReplyEmail,
                Reshow
            };

            var displayEmail = new WaterfallStep[]
            {
                IfClearPagingConditionStep,
                PagingStep,
                ShowEmails,
                PromptToHandle,
                CheckRead,
                HandleMore
            };

            var displayFilteredEmail = new WaterfallStep[]
            {
                ShowFilteredEmails,
                PromptToHandle,
                CheckRead,
                HandleMore
            };

            var redisplayEmail = new WaterfallStep[]
            {
                PromptToReshow,
                CheckReshow,
                HandleMore,
            };

            // Define the conversation flow using a waterfall model.
            AddDialog(new WaterfallDialog(Actions.Show, showEmail)
            {
                TelemetryClient = telemetryClient
            });
            AddDialog(new WaterfallDialog(Actions.Read, readEmail)
            {
                TelemetryClient = telemetryClient
            });
            AddDialog(new WaterfallDialog(Actions.Delete, deleteEmail)
            {
                TelemetryClient = telemetryClient
            });
            AddDialog(new WaterfallDialog(Actions.Forward, forwardEmail)
            {
                TelemetryClient = telemetryClient
            });
            AddDialog(new WaterfallDialog(Actions.Reply, replyEmail)
            {
                TelemetryClient = telemetryClient
            });
            AddDialog(new WaterfallDialog(Actions.Display, displayEmail)
            {
                TelemetryClient = telemetryClient
            });
            AddDialog(new WaterfallDialog(Actions.DisplayFiltered, displayFilteredEmail)
            {
                TelemetryClient = telemetryClient
            });
            AddDialog(new WaterfallDialog(Actions.ReDisplay, redisplayEmail)
            {
                TelemetryClient = telemetryClient
            });
            AddDialog(deleteEmailDialog ?? throw new ArgumentNullException(nameof(deleteEmailDialog)));
            AddDialog(replyEmailDialog ?? throw new ArgumentNullException(nameof(replyEmailDialog)));
            AddDialog(forwardEmailDialog ?? throw new ArgumentNullException(nameof(forwardEmailDialog)));
            InitialDialogId = Actions.Show;
        }
Ejemplo n.º 45
0
 public StoreController(IServiceManager serviceManager)
     : base(serviceManager)
 {
 }
 public SignController(IServiceManager serviceManager) : base(serviceManager)
 {
 }
Ejemplo n.º 47
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TitlesViewModel"/> class. 
 /// </summary>
 /// <param name="serviceManager">
 /// The service Manager.
 /// </param>
 public TitlesViewModel(IServiceManager serviceManager)
 {
     _isToShowProgress = true;
     _serviceManager = serviceManager;
 }
 public static IServiceManager AddApiUrl(this IServiceManager serviceManager, string urlToAdd)
 {
     serviceManager.SupportedUrls.Add(urlToAdd);
     return(serviceManager);
 }
        public override List <Folder> GetSubFolders(ISiteSetting siteSetting, Folder folder, int[] includedFolderTypes)
        {
            IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType);

            return(serviceManager.GetFolders(siteSetting, folder, includedFolderTypes));
        }
 public static IServiceManager AddTtlHealthCheck(this IServiceManager serviceManager, int timetoLiveInSeconds)
 {
     serviceManager.TtlCheck = new TtlCheck(serviceManager, timetoLiveInSeconds);
     return(serviceManager);
 }
Ejemplo n.º 51
0
 public PageViewModel(INavigationService navigationService, IServiceManager serviceManager)
 {
     _navigationService = navigationService;
     _serviceManager = serviceManager;
 }
 public CustomAppBarViewModel(INavigationService navigationService, IServiceManager serviceManager)
 {
     _navigationService = navigationService;
     _serviceManager = serviceManager;
     _avatar = new Uri("http://i.imgur.com/ynquHtt.jpg");
 }
        public override Folder GetParentFolder(ISiteSetting siteSetting, Folder folder)
        {
            IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType);

            return(serviceManager.GetParentFolder(siteSetting, folder));
        }
        public override Folder GetRootFolder(ISiteSetting siteSetting)
        {
            IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType);

            return(serviceManager.GetRootFolder(siteSetting));
        }
Ejemplo n.º 55
0
 public void InitializeServices(IServiceManager serviceManager)
 {
     serviceManager.RegisterSingleton<IDockingFormService, DockingFormService>();
 }
        public override List <IItem> GetListItems(ISiteSetting siteSetting, Folder folder, IView view, string sortField, bool isAsc, int currentPageIndex, string currentListItemCollectionPositionNext, CamlFilters filters, bool isRecursive, out string listItemCollectionPositionNext, out int itemCount)
        {
            IServiceManager serviceManager = ServiceManagerFactory.GetServiceManager(siteSetting.SiteSettingType);

            return(serviceManager.GetListItems(siteSetting, folder, view, sortField, isAsc, currentPageIndex, currentListItemCollectionPositionNext, filters, isRecursive, out listItemCollectionPositionNext, out itemCount));
        }
 public static IServiceManager WithDeregisterIfCriticalAfterMinutes(this IServiceManager serviceManager, int minutes)
 {
     serviceManager.DeregisterIfCriticalAfter = new TimeSpan(0, minutes, 0);
     return(serviceManager);
 }
Ejemplo n.º 58
0
 public IndexModel(IServiceManager serviceManager, string tag) : base(serviceManager)
 {
     this.Tag           = tag;
     this.DiaryEntities = new List <DiaryModel>();
 }
Ejemplo n.º 59
0
 public void InitializeServices(IServiceManager serviceManager)
 {
     serviceManager.RegisterSingleton<IWebServerService, WebServer>();
 }
Ejemplo n.º 60
0
 /// <summary>
 /// Constructor of organization controller
 /// </summary>
 /// <param name="organizationService">organization service responsible for operation related to organizations - injected by framework</param>
 /// <param name="municipalityService">municipality service responsible for operation related to municipalities - injected by framework</param>
 /// <param name="serviceManager">manager responsible for wrapping of individual service call to UI output format - injected by framework</param>
 /// <param name="logger">logger commponent to support logging - injected by framework</param>
 public RESTOrganizationController(IOrganizationService organizationService, IMunicipalityService municipalityService, IServiceManager serviceManager, ILogger <RESTOrganizationController> logger) : base(logger)
 {
     this.organizationService = organizationService;
     this.municipalityService = municipalityService;
     this.serviceManager      = serviceManager;
 }