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
[CryptographicException: The data protection operation was unsuccessful. This may have been caused by not having the user profile loaded for the current thread's user context, which may be the case when the thread is impersonating.] | |
System.Security.Cryptography.ProtectedData.Protect(Byte[] userData, Byte[] optionalEntropy, DataProtectionScope scope) +514 | |
System.Security.Cryptography.DpapiDataProtector.ProviderProtect(Byte[] userData) +75 | |
Microsoft.Owin.Security.DataHandler.SecureDataFormat`1.Protect(TData data) +93 | |
Microsoft.Owin.Security.OpenIdConnect.<ApplyResponseChallengeAsync>d__c.MoveNext() +1342 | |
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +13877064 | |
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +61 | |
Microsoft.Owin.Security.Infrastructure.<ApplyResponseCoreAsync>d__b.MoveNext() +531 | |
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +13877064 | |
System.Runtime.CompilerServices.Task |
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 MachineKeyProtectionProvider : IDataProtectionProvider | |
{ | |
public IDataProtector Create(params string[] purposes) | |
{ | |
return new MachineKeyDataProtector(purposes); | |
} | |
} | |
public class MachineKeyDataProtector : IDataProtector | |
{ |
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 OwinMiddlewares : IOwinMiddlewareProvider { | |
public ILogger Logger { get; set; } | |
public OwinMiddlewares() { | |
Logger = NullLogger.Instance; | |
} | |
public IEnumerable<OwinMiddlewareRegistration> GetOwinMiddlewares() { | |
var middlewares = new List<OwinMiddlewareRegistration>(); | |
middlewares.Add(new OwinMiddlewareRegistration |
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
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="Cake" version="0.5.5" /> | |
<package id="Cake.MSBuildTask" version="0.0.4"/> | |
<package id="BuildWebCompiler" version="1.8.273"/> | |
</packages> |
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
// Addins | |
#addin Cake.MSBuildTask | |
#r .\tools\BuildWebCompiler\tools\WebCompiler.exe |
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
Task("CompileJSX") | |
.Does(() => { | |
var compilerConfigs = GetFiles("./src/Orchard.Web/Modules/**/compilerconfig.json"); | |
foreach(var compilerConfig in compilerConfigs){ | |
Information(string.Format("Compliing JSX for {0}.", compilerConfig.ToString())); | |
var webCompilerClean = new WebCompiler.CompilerCleanTask(); | |
webCompilerClean.FileName = compilerConfig.ToString(); | |
MSBuildTaskExecute(webCompilerClean); | |
var webCompilerBuild = new WebCompiler.CompilerBuildTask(); |
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
#r .\tools\<package>\lib\net45\<dll> |
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
#addin <Package Name> <Source: MyGet, TeamCity, Etc> |
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 CustomClassMapper<T>: ClassMapper<T>, | |
SqlMapper.ITypeMap where T : class | |
{ | |
public ConstructorInfo FindConstructor(string[] names, Type[] types) | |
{ | |
return this.EntityType.GetConstructor(Type.EmptyTypes); | |
} | |
public ConstructorInfo FindExplicitConstructor() | |
{ |
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
import Ember from 'ember'; | |
export function mailtoLink(input) { | |
var mailTo = '<a href="mailto:' + input + '">'; | |
mailTo += input + '</a>'; | |
return new Ember.Handlebars.SafeString(mailTo); | |
} | |
export default Ember.Handlebars.makeBoundHelper(mailtoLink); |