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 static class DocumentStoreExtensions | |
{ | |
public static void SaveSessionAction(this IDocumentStore documentStore, Action<IDocumentSession> action) | |
{ | |
using (IDocumentSession session = documentStore.OpenSession()) | |
{ | |
action(session); | |
session.SaveChanges(); | |
documentStore.WaitForStaleIndexes(); | |
} |
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
<div> | |
<var arg="5"/> | |
<unless condition="arg==5"> | |
<p>argis5</p> | |
</unless> | |
<unless condition="arg==6"> | |
<p>argisnot6</p> | |
</unless> | |
</div> |
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
<!-- conditional node --> | |
<p if='model.IsFull' class='resultmessage'>The list is full</p> | |
<!-- conditional attribute --> | |
<ul> | |
<li each="var product in Products" class="first?{productIsFirst} last?{productIsLast}"> | |
${product.Name} | |
</li> |
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
<rewrite> | |
<rules> | |
<rule name="CanonicalHostNameRule1"> | |
<match url="(.*)" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^grandiflora\.co\.za$" negate="true" /> | |
</conditions> | |
<action type="Redirect" url="http://grandiflora.co.za/{R:1}" /> | |
</rule> | |
</rules> |