Skip to content

Instantly share code, notes, and snippets.

@if (true)
{
<p></p>
}
else
{
<text>texto solto</text>
}
type RemoteRequestListener(bindAddress:String, zContextAccessor:ZContextAccessor, kernel:IKernel) =
inherit BaseListener(zContextAccessor)
override this.GetConfig() =
let parts = bindAddress.Split(':')
new ZConfig(parts.[0], Convert.ToUInt32(parts.[1]))
using (ISession session = sessionManager.OpenSession())
{
transaction = session.Transaction;
Assert.IsFalse(transaction.IsActive);
FirstDao service = container.Resolve<FirstDao>("myfirstdao");
// This call is transactional
Blog blog = service.Create();
var routes = {
CollateralController: {
Urls: {
Index: {
get: function(id) { return "/index"; },
post: function() { return "/index"; }
}
}
}
};