C# Class jsreport.Embedded.EmbeddedReportingServer

Class able to start jsreport nodejs server allong with .net process, synchronize local templates with it and mange it's lifecycle
Inheritance: IEmbeddedReportingServer
ファイルを表示 Open project: jsreport/net Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
EmbeddedReportingServer ( long port = 2000 ) : System
StartAsync ( ) : Task

Extracts jsreport-net-embedded.zip into path to server directory, starts jsreport using nodejs from bin folder

StopAsync ( ) : Task

Sends kill signal to jsreport server and wait for it's exit

Private Methods

Method Description
CopyFilesRecursively ( DirectoryInfo source, DirectoryInfo target ) : void
CreateClient ( ) : HttpClient
Decompress ( ) : void
DeleteDirectoryContent ( string path, bool skipMainDir = true ) : void
DomainUnloadOrProcessExit ( object sender, EventArgs e ) : void
GetMainModuleFilePath ( int processId ) : string
InitializeServerPath ( ) : void
InnerSerializeConfiguration ( object obj, string path ) : string
IsWebApp ( AppDomain appDomain ) : bool
SerializeConfiguration ( ) : string
StartWorker ( ) : void
WaitForStarted ( ) : Task

Method Details

Dispose() public method

public Dispose ( ) : void
return void

EmbeddedReportingServer() public method

public EmbeddedReportingServer ( long port = 2000 ) : System
port long
return System

StartAsync() public method

Extracts jsreport-net-embedded.zip into path to server directory, starts jsreport using nodejs from bin folder
public StartAsync ( ) : Task
return Task

StopAsync() public method

Sends kill signal to jsreport server and wait for it's exit
public StopAsync ( ) : Task
return Task