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:18
Properties
service
• Private
service: NautilusService
<ServiceType
, FileType
>
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:16
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:61
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:31
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:84
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:92
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:76
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:68
build
▸ build(): NautilusService
<ServiceType
, FileType
>
Returns
NautilusService
<ServiceType
, FileType
>
Implementation of
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:105
reset
▸ reset(): void
Returns
void
Implementation of
Defined in
src/Nautilus/Asset/Service/ServiceBuilder.ts:101
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:55
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:49
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:43
setTimeout
▸ setTimeout(timeout
): ServiceBuilder
<ServiceType
, FileType
>
Parameters
Name | Type |
---|---|
timeout | number |
Returns
ServiceBuilder
<ServiceType
, FileType
>