use tls, stop for now

This commit is contained in:
Tommy Parnell
2015-10-07 23:07:36 -04:00
parent fa8cebe70b
commit 51a41da85c
2 changed files with 2 additions and 3 deletions

View File

@@ -23,8 +23,6 @@ namespace DotNetMashup.Web.Repositories
{
this._data = data;
this.setting = setting;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
ServicePointManager.ServerCertificateValidationCallback += new System.Net.Security.RemoteCertificateValidationCallback((s, ce, ch, ssl) => true);
}
public string FactoryName
@@ -112,6 +110,7 @@ namespace DotNetMashup.Web.Repositories
private async static Task<List<KeyValuePair<string, SyndicationFeed>>> GetFeed(string url, string id, List<KeyValuePair<string, SyndicationFeed>> syndicationFeeds)
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
var feeds = new List<KeyValuePair<string, SyndicationFeed>>();
try
{

View File

@@ -12,7 +12,7 @@
@if(Model.NextPage.HasValue)
{
<div class="row" style="min-height: 100px">
<a asp-action="Index" asp-route-page="@Model.NextPage" class="pill col-md-offset-5 "> --> Next Page</a>
<a asp-action="Index" asp-route-page="@Model.NextPage" class="pill col-md-offset-5 ">Next Page</a>
</div>