C# Class jsreport.Client.ReportingService

jsreport API .net Wrapper
Inheritance: IReportingService
Afficher le fichier Open project: jsreport/net Class Usage Examples

Méthodes publiques

Méthode Description
GetEnginesAsync ( ) : Task>

Request list of engines registered in jsreport server

GetRecipesAsync ( ) : Task>

Request list of recipes registered in jsreport server

GetServerVersionAsync ( ) : Task

Request jsreport package version

RenderAsync ( RenderRequest request, CancellationToken ct = default(CancellationToken) ) : Task

Overload for more sophisticated rendering.

RenderAsync ( object request, CancellationToken ct = default(CancellationToken) ) : Task

Specify comnpletely the rendering requests, see http://jsreport.net/learn/api for details

RenderAsync ( string templateShortid, object data, CancellationToken ct = default(CancellationToken) ) : Task

The simpliest rendering using template shortid and input data

RenderAsync ( string templateShortid, string jsonData, CancellationToken ct = default(CancellationToken) ) : Task

The simpliest rendering using template shortid and input data

RenderByNameAsync ( string templateName, object data, CancellationToken ct = newCancellationToken() ) : Task

The simpliest rendering using template name and input data

RenderByNameAsync ( string templateName, string jsonData, CancellationToken ct = newCancellationToken() ) : Task

The simpliest rendering using template name and input data

ReportingService ( string serviceUri ) : System
ReportingService ( string serviceUri, string username, string password ) : System

Méthodes protégées

Méthode Description
CreateClient ( ) : HttpClient

Private Methods

Méthode Description
ReportFromResponse ( HttpResponseMessage response ) : Task
ValidateAndSerializeRequest ( object request ) : string

Method Details

CreateClient() protected méthode

protected CreateClient ( ) : HttpClient
Résultat System.Net.Http.HttpClient

GetEnginesAsync() public méthode

Request list of engines registered in jsreport server
public GetEnginesAsync ( ) : Task>
Résultat Task>

GetRecipesAsync() public méthode

Request list of recipes registered in jsreport server
public GetRecipesAsync ( ) : Task>
Résultat Task>

GetServerVersionAsync() public méthode

Request jsreport package version
public GetServerVersionAsync ( ) : Task
Résultat Task

RenderAsync() public méthode

Overload for more sophisticated rendering.
public RenderAsync ( RenderRequest request, CancellationToken ct = default(CancellationToken) ) : Task
request RenderRequest ram name="request">Description of rendering process
ct CancellationToken
Résultat Task

RenderAsync() public méthode

Specify comnpletely the rendering requests, see http://jsreport.net/learn/api for details
public RenderAsync ( object request, CancellationToken ct = default(CancellationToken) ) : Task
request object ram name="request">Description of rendering process
ct CancellationToken
Résultat Task

RenderAsync() public méthode

The simpliest rendering using template shortid and input data
public RenderAsync ( string templateShortid, object data, CancellationToken ct = default(CancellationToken) ) : Task
templateShortid string template shortid can be taken from jsreport studio or from filename in jsreport embedded
data object any json serializable object
ct CancellationToken
Résultat Task

RenderAsync() public méthode

The simpliest rendering using template shortid and input data
public RenderAsync ( string templateShortid, string jsonData, CancellationToken ct = default(CancellationToken) ) : Task
templateShortid string template shortid can be taken from jsreport studio or from filename in jsreport embedded
jsonData string any json string
ct CancellationToken
Résultat Task

RenderByNameAsync() public méthode

The simpliest rendering using template name and input data
public RenderByNameAsync ( string templateName, object data, CancellationToken ct = newCancellationToken() ) : Task
templateName string template name
data object any json serializable object
ct CancellationToken
Résultat Task

RenderByNameAsync() public méthode

The simpliest rendering using template name and input data
public RenderByNameAsync ( string templateName, string jsonData, CancellationToken ct = newCancellationToken() ) : Task
templateName string template shortid can be taken from jsreport studio or from filename in jsreport embedded
jsonData string any json string
ct CancellationToken
Résultat Task

ReportingService() public méthode

public ReportingService ( string serviceUri ) : System
serviceUri string
Résultat System

ReportingService() public méthode

public ReportingService ( string serviceUri, string username, string password ) : System
serviceUri string
username string
password string
Résultat System