当前位置: 首页>>代码示例>>C#>>正文


C# IVirtualPathProvider类代码示例

本文整理汇总了C#中IVirtualPathProvider的典型用法代码示例。如果您正苦于以下问题:C# IVirtualPathProvider类的具体用法?C# IVirtualPathProvider怎么用?C# IVirtualPathProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IVirtualPathProvider类属于命名空间,在下文中一共展示了IVirtualPathProvider类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: InMemoryVirtualDirectory

 public InMemoryVirtualDirectory(IVirtualPathProvider owningProvider) 
     : base(owningProvider)
 {
     this.files = new List<InMemoryVirtualFile>();
     this.dirs = new List<InMemoryVirtualDirectory>();
     this.DirLastModified = DateTime.MinValue;
 }
开发者ID:nustack,项目名称:ServiceStack,代码行数:7,代码来源:InMemoryVirtualPathProvider.cs

示例2: ThemeService

        public ThemeService(
            IOrchardServices orchardServices,
            IExtensionManager extensionManager,
            IFeatureManager featureManager,
            IEnumerable<IThemeSelector> themeSelectors,
            IVirtualPathProvider virtualPathProvider,
            ICacheManager cacheManager,
            ISiteThemeService siteThemeService) {

            Services = orchardServices;

            _extensionManager = extensionManager;
            _featureManager = featureManager;
            _themeSelectors = themeSelectors;
            _virtualPathProvider = virtualPathProvider;
            _cacheManager = cacheManager;
            _siteThemeService = siteThemeService;

            if (_featureManager.FeatureDependencyNotification == null) {
                _featureManager.FeatureDependencyNotification = GenerateWarning;
            }

            Logger = NullLogger.Instance;
            T = NullLocalizer.Instance;
        }
开发者ID:Higea,项目名称:Orchard,代码行数:25,代码来源:ThemeService.cs

示例3: PlacementService

        public PlacementService(
            IContentManager contentManager,
            ISiteThemeService siteThemeService,
            IExtensionManager extensionManager,
            IShapeFactory shapeFactory,
            IShapeTableLocator shapeTableLocator,
            RequestContext requestContext,
            IEnumerable<IContentPartDriver> contentPartDrivers,
            IEnumerable<IContentFieldDriver> contentFieldDrivers,
            IVirtualPathProvider virtualPathProvider,
            IWorkContextAccessor workContextAccessor
            )
        {
            _contentManager = contentManager;
            _siteThemeService = siteThemeService;
            _extensionManager = extensionManager;
            _shapeFactory = shapeFactory;
            _shapeTableLocator = shapeTableLocator;
            _requestContext = requestContext;
            _contentPartDrivers = contentPartDrivers;
            _contentFieldDrivers = contentFieldDrivers;
            _virtualPathProvider = virtualPathProvider;
            _workContextAccessor = workContextAccessor;

            Logger = NullLogger.Instance;
        }
开发者ID:wezmag,项目名称:Coevery,代码行数:26,代码来源:PlacementService.cs

示例4: ReferencedExtensionLoader

 public ReferencedExtensionLoader(IDependenciesFolder dependenciesFolder, IVirtualPathProvider virtualPathProvider, IBuildManager buildManager)
     : base(dependenciesFolder)
 {
     _virtualPathProvider = virtualPathProvider;
     _buildManager = buildManager;
     Logger = NullLogger.Instance;
 }
开发者ID:gokhandisikara,项目名称:Coevery-Framework,代码行数:7,代码来源:ReferencedExtensionLoader.cs

示例5: RawThemeExtensionLoader

        /// <summary>
        /// 初始化一个新的扩展装载机。
        /// </summary>
        /// <param name="dependenciesFolder">依赖文件夹。</param>
        /// <param name="virtualPathProvider">虚拟路提供程序。</param>
        public RawThemeExtensionLoader(IDependenciesFolder dependenciesFolder, IVirtualPathProvider virtualPathProvider)
            : base(dependenciesFolder)
        {
            _virtualPathProvider = virtualPathProvider;

            Logger = NullLogger.Instance;
        }
开发者ID:l1183479157,项目名称:RabbitHub,代码行数:12,代码来源:RawThemeExtensionLoader.cs

示例6: TokenizeVirtualPath

        public static Stack<string> TokenizeVirtualPath(this string str, IVirtualPathProvider pathProvider)
        {
            if (pathProvider == null)
                throw new ArgumentNullException("pathProvider");

            return TokenizeVirtualPath(str, pathProvider.VirtualPathSeparator);
        }
开发者ID:vebin,项目名称:soa,代码行数:7,代码来源:VirtualPathExtensions.cs

示例7: DefaultVirtualPathMonitor

 public DefaultVirtualPathMonitor(IClock clock, IVirtualPathProvider virtualPathProvider)
 {
     _clock = clock;
     _virtualPathProvider = virtualPathProvider;
     _thunk = new Thunk(this);
     Logger = NullLogger.Instance;
 }
开发者ID:l1183479157,项目名称:RabbitHub,代码行数:7,代码来源:DefaultVirtualPathMonitor.cs

示例8: ResourceFileService

        public ResourceFileService(
            IVirtualPathProvider virtualPathProvider)
        {
            _virtualPathProvider = virtualPathProvider;

            T = NullLocalizer.Instance;
        }
开发者ID:GiscardBiamby,项目名称:combinator,代码行数:7,代码来源:ResourceFileService.cs

示例9: DefaultBuildManager

        public DefaultBuildManager(
            IVirtualPathProvider virtualPathProvider, 
            IAssemblyLoader assemblyLoader) {

            _virtualPathProvider = virtualPathProvider;
            _assemblyLoader = assemblyLoader;
        }
开发者ID:cmacri,项目名称:Orchard,代码行数:7,代码来源:IBuildManager.cs

示例10: ImportedExtensionsProvider

        public ImportedExtensionsProvider(
            IDependenciesFolder dependenciesFolder,
            IEnumerable<Assembly> extensions,
            IVirtualPathProvider virtualPathProvider)
            : base(dependenciesFolder)
        {
            // It's not nice to do this in the ctor but this way we spare to implement locking that would be needed with lazy-loading
            // and this class will be instantiated once anyway.
            _extensionsByName = extensions
                .ToDictionary
                (
                    assembly => assembly.ShortName(),
                    assembly => new Extension
                        {
                            Assembly = assembly,
                            Features = assembly
                                .GetExportedTypes()
                                .Where(type => type.GetCustomAttribute(typeof(OrchardFeatureAttribute)) != null)
                                .Select(type => ((OrchardFeatureAttribute)type.GetCustomAttribute(typeof(OrchardFeatureAttribute))).FeatureName)
                                .Union(new[] { assembly.ShortName() })
                                .Distinct()
                        }
                );

            _virtualPathProvider = virtualPathProvider;
        }
开发者ID:aholik,项目名称:orchardapphost,代码行数:26,代码来源:ImportedExtensionsProvider.cs

示例11: JsHttpHandler

 /// <summary>
 /// Initializes a new instance of the <see cref="WebAssetHttpHandler"/> class.
 /// </summary>
 /// <param name="assetRegistry">The asset registry.</param>
 /// <param name="httpResponseCompressor">The HTTP response compressor.</param>
 /// <param name="httpResponseCacher">The HTTP response cacher.</param>
 public JsHttpHandler(IHttpResponseCompressor httpResponseCompressor, IHttpResponseCacher httpResponseCacher,
     IVirtualPathProvider virtualPathProvider)
 {
     _httpResponseCompressor = httpResponseCompressor;
     _httpResponseCacher = httpResponseCacher;
     _virtualPathProvider = virtualPathProvider;
 }
开发者ID:netsouls,项目名称:eCentral,代码行数:13,代码来源:JsHttpHandler.cs

示例12: WebSiteFolder

        public WebSiteFolder(IVirtualPathMonitor virtualPathMonitor, IVirtualPathProvider virtualPathProvider)
        {
            _virtualPathMonitor = virtualPathMonitor;
            _virtualPathProvider = virtualPathProvider;

            Logger = NullLogger.Instance;
        }
开发者ID:qhme,项目名称:OrchardLite,代码行数:7,代码来源:WebSiteFolder.cs

示例13: PackageBuilder

        public PackageBuilder(IWebSiteFolder webSiteFolder,
            IVirtualPathProvider virtualPathProvider,
            IOrchardFrameworkAssemblies frameworkAssemblies) {

            _webSiteFolder = webSiteFolder;
            _virtualPathProvider = virtualPathProvider;
            _frameworkAssemblies = frameworkAssemblies;
        }
开发者ID:anycall,项目名称:Orchard,代码行数:8,代码来源:PackageBuilder.cs

示例14: AbstractVirtualDirectoryBase

        protected AbstractVirtualDirectoryBase(IVirtualPathProvider owningProvider, IVirtualDirectory parentDirectory)
        {
            if (owningProvider == null)
                throw new ArgumentNullException("owningProvider");

            this.VirtualPathProvider = owningProvider;
            this.ParentDirectory = parentDirectory;
        }
开发者ID:GDBSD,项目名称:ServiceStack,代码行数:8,代码来源:AbstractVirtualDirectoryBase.cs

示例15: EditorSnippetBuilder

        public EditorSnippetBuilder(IList<DropDownItem> items)
        {
            Guard.IsNotNull(items, "items");

            pathProvider = ServiceLocator.Current.Resolve<IVirtualPathProvider>();

            this.items = items;
        }
开发者ID:juanplopes,项目名称:simple-telerik,代码行数:8,代码来源:EditorSnippetBuilder.cs


注:本文中的IVirtualPathProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。