Beispiel #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="configuration">The configuration of the application</param>
        public FileModelServiceBase(IServicesConfiguration configuration, IMdFileParserService fileParserService)
        {
#if DEBUG
            this.WriteDebugLine();
#endif
            this.configuration     = configuration;
            this.fileParserService = fileParserService;
            filesPath = MakeFilesPath();
        }
Beispiel #2
0
        public SitecoreServices(ITypeProvider typeProvider, IControllerNameGenerator controllerNameGenerator, IMetaDataBuilder metaDataBuilder, IServicesConfiguration servicesConfiguration)
        {
            if (typeProvider == null)
            {
                throw new ArgumentNullException("typeProvider");
            }
            if (controllerNameGenerator == null)
            {
                throw new ArgumentNullException("controllerNameGenerator");
            }
            if (metaDataBuilder == null)
            {
                throw new ArgumentNullException("metaDataBuilder");
            }
            if (servicesConfiguration == null)
            {
                throw new ArgumentNullException("servicesConfiguration");
            }

            _typeProvider            = typeProvider;
            _controllerNameGenerator = controllerNameGenerator;
            _metaDataBuilder         = metaDataBuilder;
            _servicesConfiguration   = servicesConfiguration;
        }
 public ServiceController(IServiceStatusProvider provider, IServicesConfiguration config)
 {
     this.provider = provider;
     this.config   = config;
 }
Beispiel #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="configuration"></param>
 /// <param name="cacheProvider"></param>
 /// <param name="fileParserService"></param>
 public ArticleService(IServicesConfiguration configuration, IFileModelCacheProvider <Article> cacheProvider, IMdFileParserService fileParserService)
     : base(configuration, fileParserService)
 {
     this.cacheProvider = cacheProvider;
 }