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
public class LazySearchService : ISearchService | |
{ | |
public readonly ISearchService innerService; | |
public LazySearchService(ISearchService innerService) | |
{ | |
this.innerService = innerService; | |
} | |
public ISearchResult Search(SearchCriteria criteria) |
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
//////////////////////////////////// | |
// // | |
// AUTO GENERATED. DO NOT EDIT. // | |
// // | |
//////////////////////////////////// | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; |
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
<dependentAssembly> | |
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" /> | |
<bindingRedirect oldVersion="1.0.0.0-2.1.0.0" newVersion="2.1.0.0" /> | |
</dependentAssembly> | |
<dependentAssembly> | |
<assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /> | |
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> | |
</dependentAssembly> | |
<!--<dependentAssembly> | |
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> |
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
using ActiveCommerce.Extensions; | |
namespace SbosAcceleratorsPlusActiveCommerce | |
{ | |
public class SkinnedSublayout : global::Sitecore.SbosAccelerators.Shared.Web.UI.WebControls.Sublayout | |
{ | |
protected override void CreateChildControls() | |
{ | |
if (global::Sitecore.Context.Site != null) | |
{ |
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
<dependentAssembly> | |
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" /> | |
<bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0" /> | |
</dependentAssembly> | |
<dependentAssembly> | |
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" /> | |
<bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0" /> | |
</dependentAssembly> |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Fortis; | |
using Fortis.Model; | |
using Sitecore.ContentSearch; | |
using Sitecore.ContentSearch.Linq.Methods; | |
using Sitecore.ContentSearch.Security; | |
using Sitecore.Data; |
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
<Target Name="Write_AssemblyRefs_TT" BeforeTargets="TransformOnBuild"> | |
<!-- A message for all to enjoy! --> | |
<WriteLinesToFile File="@(MyTextFile)" | |
Lines="<# /* AUTOGENERATED BY MSBUILD and Kern Herskind Nightingale */ #>" | |
Overwrite="true" | |
Encoding="Unicode" /> | |
<!-- Output all assembly references with a HintPath --> | |
<WriteLinesToFile File="@(MyTextFile)" | |
Lines="<#@ assembly name="$(ProjectDir)%(Reference.HintPath)" #>" | |
Overwrite="false" |
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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<contentSearch> | |
<indexConfigurations> | |
<!-- Un-comment out the config for Lucene or SOLR for your project --> | |
<defaultLuceneIndexConfiguration> | |
<indexDocumentPropertyMapper> |
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
using System; | |
using System.Net; | |
using System.Net.Http; | |
using System.Text; | |
namespace ItemServiceConsoler | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType); | |
app.UseCookieAuthentication(new CookieAuthenticationOptions()); | |
//use OpenId | |
app.UseOpenIdConnectAuthentication( | |
new OpenIdConnectAuthenticationOptions | |
{ | |
ClientId = ..., | |
Authority = ..., |
OlderNewer