Class: ServiceBuilder<ServiceType, FileType>
Nautilus.ServiceBuilder
Type parameters
Name | Type |
---|---|
ServiceType | extends ServiceTypes |
FileType | extends FileTypes |
Implements
IServiceBuilder
<ServiceType
,FileType
>
Constructors
constructor
• new ServiceBuilder<ServiceType
, FileType
>(serviceType
, fileType?
)
Type parameters
Name | Type |
---|---|
ServiceType | extends ServiceTypes |
FileType | extends FileTypes |
Parameters
Name | Type | Default value |
---|---|---|
serviceType | ServiceType | undefined |
fileType | FileTypes | FileTypes.URL |
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:20
Properties
service
• Private
service: NautilusService
<ServiceType
, FileType
>
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:18
Methods
addConsumerParameter
▸ addConsumerParameter(parameter
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
parameter | NautilusConsumerParameter |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.addConsumerParameter
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:63
addFile
▸ addFile(file
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
file | ServiceFileType <FileType > |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:33
addTrustedAlgorithm
▸ addTrustedAlgorithm(algorithm
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
algorithm | PublisherTrustedAlgorithm |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.addTrustedAlgorithm
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:86
addTrustedAlgorithmPublisher
▸ addTrustedAlgorithmPublisher(publisher
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
publisher | string |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.addTrustedAlgorithmPublisher
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:94
allowAlgorithmNetworkAccess
▸ allowAlgorithmNetworkAccess(allow?
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type | Default value |
---|---|---|
allow | boolean | true |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.allowAlgorithmNetworkAccess
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:78
allowRawAlgorithms
▸ allowRawAlgorithms(allow?
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type | Default value |
---|---|---|
allow | boolean | true |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.allowRawAlgorithms
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:70
build
▸ build(): NautilusService
<ServiceType
, FileType
>
Returns
NautilusService
<ServiceType
, FileType
>
Implementation of
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:129
reset
▸ reset(): void
Returns
void
Implementation of
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:125
setDatatokenData
▸ setDatatokenData(tokenData
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
tokenData | DatatokenCreateParamsWithoutOwner |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.setDatatokenData
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:102
setDatatokenNameAndSymbol
▸ setDatatokenNameAndSymbol(dtName
, dtSymbol
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
dtName | string |
dtSymbol | string |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.setDatatokenNameAndSymbol
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:108
setDescription
▸ setDescription(description
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
description | string |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.setDescription
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:57
setName
▸ setName(name
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
name | string |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:51
setPricing
▸ setPricing(pricing
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
pricing | PricingConfigWithoutOwner |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:118
setServiceEndpoint
▸ setServiceEndpoint(endpoint
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
endpoint | string |
Returns
ServiceBuilder
<ServiceType
, FileType
>
Implementation of
IServiceBuilder.setServiceEndpoint
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:45
setTimeout
▸ setTimeout(timeout
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
timeout | number |
Returns
ServiceBuilder
<ServiceType
, FileType
>