-
Notifications
You must be signed in to change notification settings - Fork 753
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5525 from bdukes/syndication-docs
Resolve warnings in DotNetNuke.Syndication
- Loading branch information
Showing
21 changed files
with
1,376 additions
and
1,634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
113 changes: 53 additions & 60 deletions
113
DNN Platform/Library/Services/Syndication/SyndicationHandlerBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,59 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information | ||
namespace DotNetNuke.Services.Syndication | ||
{ | ||
using System.Web; | ||
namespace DotNetNuke.Services.Syndication | ||
{ | ||
using System.Web; | ||
|
||
using DotNetNuke.Common; | ||
using DotNetNuke.Common.Utilities; | ||
using DotNetNuke.Common; | ||
using DotNetNuke.Common.Utilities; | ||
using DotNetNuke.Entities.Portals; | ||
|
||
public class SyndicationHandlerBase : GenericRssHttpHandlerBase | ||
{ | ||
private int moduleId = Null.NullInteger; | ||
|
||
private int tabId = Null.NullInteger; | ||
|
||
public PortalSettings Settings | ||
{ | ||
get | ||
{ | ||
return Globals.GetPortalSettings(); | ||
} | ||
} | ||
|
||
public int TabId | ||
{ | ||
get | ||
{ | ||
if (this.tabId == Null.NullInteger && this.Request.QueryString["tabid"] != null) | ||
{ | ||
if (!int.TryParse(this.Request.QueryString["tabid"], out this.tabId)) | ||
{ | ||
this.tabId = Null.NullInteger; | ||
} | ||
} | ||
|
||
return this.tabId; | ||
} | ||
} | ||
|
||
public int ModuleId | ||
{ | ||
get | ||
{ | ||
if (this.moduleId == Null.NullInteger && this.Request.QueryString["moduleid"] != null) | ||
{ | ||
if (!int.TryParse(this.Request.QueryString["moduleid"], out this.moduleId)) | ||
{ | ||
this.moduleId = Null.NullInteger; | ||
} | ||
} | ||
|
||
return this.moduleId; | ||
} | ||
} | ||
|
||
public HttpRequest Request | ||
{ | ||
get | ||
{ | ||
return HttpContext.Current.Request; | ||
} | ||
} | ||
} | ||
} | ||
/// <summary>An HTTP handler for generating an RSS feed.</summary> | ||
public class SyndicationHandlerBase : GenericRssHttpHandlerBase | ||
{ | ||
private int moduleId = Null.NullInteger; | ||
|
||
private int tabId = Null.NullInteger; | ||
|
||
/// <summary>Gets the portal settings.</summary> | ||
public PortalSettings Settings => Globals.GetPortalSettings(); | ||
|
||
/// <summary>Gets the tab ID of the request.</summary> | ||
public int TabId | ||
{ | ||
get | ||
{ | ||
if (this.tabId == Null.NullInteger && this.Request.QueryString["tabid"] != null) | ||
{ | ||
if (!int.TryParse(this.Request.QueryString["tabid"], out this.tabId)) | ||
{ | ||
this.tabId = Null.NullInteger; | ||
} | ||
} | ||
|
||
return this.tabId; | ||
} | ||
} | ||
|
||
/// <summary>Gets the module ID of the request.</summary> | ||
public int ModuleId | ||
{ | ||
get | ||
{ | ||
if (this.moduleId == Null.NullInteger && this.Request.QueryString["moduleid"] != null) | ||
{ | ||
if (!int.TryParse(this.Request.QueryString["moduleid"], out this.moduleId)) | ||
{ | ||
this.moduleId = Null.NullInteger; | ||
} | ||
} | ||
|
||
return this.moduleId; | ||
} | ||
} | ||
|
||
/// <summary>Gets the HTTP request.</summary> | ||
public HttpRequest Request => HttpContext.Current.Request; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.