zplCore.comzplCore.com

NucleusCloudPrintOptions

public sealed class NucleusCloudPrintOptions

Settings of NucleusCloudPrintClient.

Constructors

SignatureDescription
# NucleusCloudPrintOptions()

Properties

PropertyTypeDescription
CallTimeout { get; set; }TimeSpanTime limit of one call.
ConnectRetries { get; set; }intRepeats of a call that could not reach the service at all (nothing accepted, no double print).
ConnectRetryDelay { get; set; }TimeSpan
DescriptorSetPath { get; set; }stringOptional FileDescriptorSet of a newer proto bundle: export it in Nucleus (API Collection > Export) and run, in the bundle folder, protoc -I protos -I google --include_imports -o nucleus.pb $(find protos -name '*.proto'). Without it the built-in definitions of bundle nucleus-apis-v1 are used.
Endpoint { get; set; }Uri
HttpClient { get; set; }HttpClientOwn HttpClient (proxy, handler); must allow HTTP/2. Null = a shared client of the library.
MaxInlineBytes { get; set; }intLargest inline payload (content.data); the API takes up to 10 MB.
Token { get; set; }stringAPI token from Zebra Nucleus (ID icon > API Tokens > New API Token; starts with zbr_nuc_, shown only once). Null = NucleusCloudPrintOptions.TokenVariable or the file in NucleusCloudPrintOptions.TokenFileVariable.
UseReflection { get; set; }boolAsk the service for its definitions by gRPC server reflection before using the built-in ones. Off by default: Zebra's endpoint has no reflection (bundle README); useful only for gateways or test services that offer it.

Fields & Constants

FieldTypeDescription
static readonly DefaultEndpointUriDefault API host (User Guide MN-005938-01EN): TLS on port 443, behind Zebra's Envoy gateway.
const TokenFileVariable = "ZEBRA_NUCLEUS_TOKEN_FILE"stringEnvironment variable with the path of a file that holds the API token.
const TokenVariable = "ZEBRA_NUCLEUS_TOKEN"stringEnvironment variable with the API token.