View Sitecore-MongoDB-Ssl-Client-Certificate-Processor.cs
var cert = new X509Certificate2("client.pfx", "mySuperSecretPassword");
args.MongoSettings.SslSettings = new SslSettings();
args.MongoSettings.SslSettings.ClientCertificates = new[] { cert };
args.MongoSettings.UseSsl = true;
View Sitecore-UpdateMongoDriverSettings-Pipeline.cs
<pipelines>
<updateMongoDriverSettings>
</updateMongoDriverSettings>
</pipelines>
View Sitecore-MongoDB-Client-Creation.cs
UpdateMongoDriverSettingsArgs updateMongoDriverSettingsArgs = new UpdateMongoDriverSettingsArgs(mongoUrl.DatabaseName, mongoSettings);
UpdateMongoDriverSettingsPipeline.Run(updateMongoDriverSettingsArgs);
MongoClient mongoClient = new MongoClient(updateMongoDriverSettingsArgs.MongoSettings);
View MongoDB-CSharp-Driver-Ssl-Client.cs
var cert = new X509Certificate2("client.pfx", "mySuperSecretPassword");
var settings = new MongoClientSettings
{
SslSettings = new SslSettings
{
ClientCertificates = new[] { cert },
},
UseSsl = true
};
View Sitecore.IgnoreUrlPrefixes.Example.config
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:x="http://www.sitecore.net/xmlconfig/">
<sitecore>
<settings>
<setting name="IgnoreUrlPrefixes">
<patch:attribute name="value">/sitecore/default.aspx|/trace.axd|/webresource.axd|/sitecore/shell/Controls/Rich Text Editor/Telerik.Web.UI.DialogHandler.aspx|/sitecore/shell/applications/content manager/telerik.web.ui.dialoghandler.aspx|/sitecore/shell/Controls/Rich Text Editor/Telerik.Web.UI.SpellCheckHandler.axd|/Telerik.Web.UI.WebResource.axd|/sitecore/admin/upgrade/|/layouts/testing|/foo|/bar|/baz</patch:attribute>
</setting>
</settings>
</sitecore>
</configuration>
View ProcessPatchedIgnores.cs
using Sitecore.Collections;
using Sitecore.Pipelines.HttpRequest;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Sitecore.PatchableIgnoreList
{
public class ProcessPatchedIgnores : HttpRequestProcessor
View Sitecore.PatchableIgnoreList.AnotherPatch.config
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<httpRequestBegin>
<processor type="Sitecore.PatchableIgnoreList.ProcessPatchedIgnores, Sitecore.PatchableIgnoreList">
<Paths hint="list:AddPaths">
<baz>/baz</baz>
</Paths>
</processor>
</httpRequestBegin>
View Sitecore.PatchableIgnoreList.config
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<pipelines>
<httpRequestBegin>
<processor type="Sitecore.PatchableIgnoreList.ProcessPatchedIgnores, Sitecore.PatchableIgnoreList"
patch:after="processor[@type='Sitecore.Pipelines.HttpRequest.IgnoreList, Sitecore.Kernel']">
<Paths hint="list:AddPaths">
<foo>/foo</foo>
<bar>/bar</bar>
</Paths>