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 MultitenantFilter : FilterDefinition | |
{ | |
public MultitenantFilter() | |
{ | |
WithName("multitenancy").WithCondition("TenantId= :tenantId").AddParameter("tenantId", NHibernate.NHibernateUtil.Int64); | |
} | |
} |
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
HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create("http://localhost:4000/api/report"); | |
myRequest.Method = "POST"; | |
myRequest.ContentType = "application/json"; | |
var dataString = JsonConvert.SerializeObject(new | |
{ | |
template = new | |
{ | |
shortid = "bk_Ctaj-q" | |
} |
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 static async Task GetBackPdfStreamFromPureHtml() | |
{ | |
var reportingService = new ReportingService("http://localhost:2000"); | |
var report = await reportingService.RenderAsync(new RenderRequest() | |
{ | |
template = new Template() | |
{ | |
content = "<h1>pure html</h1", | |
recipe = "phantom-pdf", | |
engine = "handlebars" |
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
{ } |
NewerOlder