Method BuildDefaultAsync
BuildDefaultAsync()
Builds the default client object that tries to connect to a locally running service.
Declaration
public static Task<IClient> BuildDefaultAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IClient> | Either null in case of error or the pdf client object. |
Remarks
The client reuses an already running pdf service assumed to be listening at port 50051. If that fails, the client tries to summon a local service that comes to your app by directly referencing the SigPdfService package.
Alternatively,
docker run --detach --name pdf-service -p 50051:50051 docker.stepover.de:8143/pdf-service/pdf-service
BuildDefaultAsync(Int32)
Builds the default client object that tries to connect to a locally running service.
Declaration
public static Task<IClient> BuildDefaultAsync(int port)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | port | The port the local pdf service is listening at. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IClient> | The pdf client object or null in case of error |
Remarks
Works like BuildDefault() but uses the given port instead.