• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IVirtualPathProvider类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: EditorImageBrowserController

 protected EditorImageBrowserController(IDirectoryBrowser directoryBrowser,
     IDirectoryPermission permission,
     IVirtualPathProvider pathProvider,
     IThumbnailCreator thumbnailCreator)
     : base(directoryBrowser, permission, pathProvider)
 {
     this.thumbnailCreator = thumbnailCreator;
 }
开发者ID:jstevenson81,项目名称:wodgeaux,代码行数:8,代码来源:EditorImageBrowserController.cs


示例17: FileSystemVirtualDirectory

        public FileSystemVirtualDirectory(IVirtualPathProvider owningProvider, IVirtualDirectory parentDirectory, DirectoryInfo dInfo)
            : base(owningProvider, parentDirectory)
        {
            if (dInfo == null)
                throw new ArgumentNullException("dInfo");

            this.BackingDirInfo = dInfo;
        }
开发者ID:JonCanning,项目名称:ServiceStack,代码行数:8,代码来源:FileSystemVirtualDirectory.cs


示例18: FileSystemVirtualFile

        public FileSystemVirtualFile(IVirtualPathProvider owningProvider, IVirtualDirectory directory, FileInfo fInfo) 
            : base(owningProvider, directory)
        {
            if (fInfo == null)
                throw new ArgumentNullException("fInfo");

            this.BackingFile = fInfo;
        }
开发者ID:JonCanning,项目名称:ServiceStack,代码行数:8,代码来源:FileSystemVirtualFile.cs


示例19: DynamicExtensionLoader

 public DynamicExtensionLoader(
     IVirtualPathProvider virtualPathProvider,
     IServiceProvider serviceProvider,
     IAssemblyLoaderContainer container)
 {
     _virtualPathProvider = virtualPathProvider;
     _serviceProvider = serviceProvider;
     _loaderContainer = container;
 }
开发者ID:fengyeju,项目名称:Brochard,代码行数:9,代码来源:DynamicExtensionLoader.cs


示例20: DynamicExtensionLoader

 public DynamicExtensionLoader(
     IVirtualPathProvider virtualPathProvider,
     IAssemblyLoaderContainer container,
     IExtensionAssemblyLoader extensionAssemblyLoader)
 {
     _virtualPathProvider = virtualPathProvider;
     _loaderContainer = container;
     _extensionAssemblyLoader = extensionAssemblyLoader;
 }
开发者ID:jp311,项目名称:Brochard,代码行数:9,代码来源:DynamicExtensionLoader.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IVisitor类代码示例发布时间:2022-05-24
下一篇:
C# IVirtualFile类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap