📄 basefilegallerysyndicationhandler.cs
字号:
//------------------------------------------------------------------------------
// <copyright company="Telligent Systems">
// Copyright (c) Telligent Systems Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
using CommunityServer.Components;
namespace CommunityServer.Files.Components
{
/// <summary>
/// Base class for all File Gallery Syndication feeds
/// </summary>
public abstract class BaseFileGallerySyndicationHandler : BaseSyndicationHandler
{
public BaseFileGallerySyndicationHandler() { }
private FileGalleryConfiguration _fileGalleryConfig;
protected FileGalleryConfiguration FileGalleryConfig
{
get
{
if (_fileGalleryConfig == null)
_fileGalleryConfig = FileGalleryConfiguration.GetConfig();
return _fileGalleryConfig;
}
}
/// <summary>
/// The length of time the feed should be cached in seconds.
/// </summary>
protected override int CacheTime
{
get { return CSCache.SecondFactorCalculate(FileGalleryConfig.RssCacheWindowInSeconds); }
}
protected override string BaseUrl
{
get { return Globals.HostPath(Context.Request.Url); }
}
protected override Section GetCurrentSection
{
get { return Folders.GetFolder(CSContext.Current.ApplicationKey); }
}
protected Folder CurrentFolder
{
get { return CurrentSection as Folder;}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -