本文整理汇总了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;
}
示例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;
}
示例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;
}
示例4: ReferencedExtensionLoader
public ReferencedExtensionLoader(IDependenciesFolder dependenciesFolder, IVirtualPathProvider virtualPathProvider, IBuildManager buildManager)
: base(dependenciesFolder)
{
_virtualPathProvider = virtualPathProvider;
_buildManager = buildManager;
Logger = NullLogger.Instance;
}
示例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;
}
示例6: TokenizeVirtualPath
public static Stack<string> TokenizeVirtualPath(this string str, IVirtualPathProvider pathProvider)
{
if (pathProvider == null)
throw new ArgumentNullException("pathProvider");
return TokenizeVirtualPath(str, pathProvider.VirtualPathSeparator);
}
示例7: DefaultVirtualPathMonitor
public DefaultVirtualPathMonitor(IClock clock, IVirtualPathProvider virtualPathProvider)
{
_clock = clock;
_virtualPathProvider = virtualPathProvider;
_thunk = new Thunk(this);
Logger = NullLogger.Instance;
}
示例8: ResourceFileService
public ResourceFileService(
IVirtualPathProvider virtualPathProvider)
{
_virtualPathProvider = virtualPathProvider;
T = NullLocalizer.Instance;
}
示例9: DefaultBuildManager
public DefaultBuildManager(
IVirtualPathProvider virtualPathProvider,
IAssemblyLoader assemblyLoader) {
_virtualPathProvider = virtualPathProvider;
_assemblyLoader = assemblyLoader;
}
示例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;
}
示例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;
}
示例12: WebSiteFolder
public WebSiteFolder(IVirtualPathMonitor virtualPathMonitor, IVirtualPathProvider virtualPathProvider)
{
_virtualPathMonitor = virtualPathMonitor;
_virtualPathProvider = virtualPathProvider;
Logger = NullLogger.Instance;
}
示例13: PackageBuilder
public PackageBuilder(IWebSiteFolder webSiteFolder,
IVirtualPathProvider virtualPathProvider,
IOrchardFrameworkAssemblies frameworkAssemblies) {
_webSiteFolder = webSiteFolder;
_virtualPathProvider = virtualPathProvider;
_frameworkAssemblies = frameworkAssemblies;
}
示例14: AbstractVirtualDirectoryBase
protected AbstractVirtualDirectoryBase(IVirtualPathProvider owningProvider, IVirtualDirectory parentDirectory)
{
if (owningProvider == null)
throw new ArgumentNullException("owningProvider");
this.VirtualPathProvider = owningProvider;
this.ParentDirectory = parentDirectory;
}
示例15: EditorSnippetBuilder
public EditorSnippetBuilder(IList<DropDownItem> items)
{
Guard.IsNotNull(items, "items");
pathProvider = ServiceLocator.Current.Resolve<IVirtualPathProvider>();
this.items = items;
}