This file contains hidden or 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
2019-05-26 22:07:07.0313|Example|80001ff1-0000-d000-b63f-84710c7967bb||Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer|ERROR|Connection ID "14987979561499631595", Request ID "80001ff1-0000-d000-b63f-84710c7967bb": An unhandled exception was thrown by the application. System.Data.SqlClient.SqlException (0x80131904): The transaction operation cannot be performed because there are pending requests working on this transaction. | |
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) | |
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) | |
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) | |
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stat |
This file contains hidden or 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 HomeModuleTests : ModuleTestBase<HomeModule> | |
{ | |
[Test] | |
public void Default_CanBeFound() | |
{ | |
SetView("Home/Index", new HtmlResponse()); | |
Get("/"); | |
Assert.That(Response.StatusCode, Is.EqualTo(HttpStatusCode.OK)); | |
} |
This file contains hidden or 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 CustomRootPathProvider : IRootPathProvider | |
{ | |
public string GetRootPath() | |
{ | |
return Path.GetDirectoryName(typeof(Bootstrapper).Assembly.Location); | |
} | |
} | |
public class ModuleTestBase<TModule> where TModule : NancyModule | |
{ |
This file contains hidden or 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
protected override NancyInternalConfiguration InternalConfiguration | |
{ | |
get { return NancyInternalConfiguration.WithOverrides(c => c.Serializers.Insert(0, typeof(JsonNetSerializer))); } | |
} |
This file contains hidden or 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"?> | |
<configuration> | |
<system.web> | |
<httpHandlers> | |
<remove verb="*" path="*"/> | |
</httpHandlers> | |
</system.web> | |
<system.webServer> | |
<handlers> |
This file contains hidden or 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
<authentication mode="Windows" /> | |
<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"/> |
This file contains hidden or 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
<property name="js.libs.dir" value="${basedir}/js/vendor" /> | |
<property name="pages-files" value="header.php" /> | |
<property name="intermediate.dir" value="${basedir}/deploy/intermediate" /> | |
<!-- | |
Removes the client side less javascript library. | |
--> | |
<target name="-removeclientless"> | |
<replaceregexp match="<script src=".*${js.libs.dir}/less-1.3.0.min.js".*>" replace=" " flags="m"> | |
<fileset dir="${intermediate.dir}" includes="${page-files}"/> |
This file contains hidden or 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
<property name="included.less.stylesheets" value="first.less,second.less" /> | |
<property name="pages-files" value="header.php" /> | |
<property name="intermediate.dir" value="${basedir}/deploy/intermediate" /> | |
<!-- | |
Modifies any .less external stylesheet imports, and converts them | |
to be directed at the compiled .css versions of the .less files. | |
--> | |
<target name="-lesstocss"> | |
<for param="less.file" parallel="true" list="${included.less.stylesheets}"> |
This file contains hidden or 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
<property name="included.less.stylesheets" value="first.less,second.less"/> | |
<property name="tool.lessc" value="/build/tools/lessc/lessc.cmd"/> | |
<property name="css.dir" value="css" /> | |
<property name="less.dir" value="less" /> | |
<target name="-less"> | |
<for param="less.file" list="${included.less.stylesheets}"> | |
<sequential> | |
<echo>compiling @{less.file} to @{less.file}.css</echo> | |
<exec dir="${basedir}" executable="${tool.lessc}" failifexecutionfails='true'> |
This file contains hidden or 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
<html> | |
<head> | |
<title>LESS client side example.</title> | |
<link rel="stylesheet" href="css/styles.less.css" /> | |
</head> | |
<body> | |
</body> |
NewerOlder