basefilegallerysyndicationhandler.cs
来自「community server 源码」· CS 代码 · 共 56 行
CS
56 行
//------------------------------------------------------------------------------
// <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 + =
减小字号Ctrl + -
显示快捷键?