WorkerService
Namespace: MBrace.Azure.Service
MBrace.Azure worker service manager
Constructors
Constructor | Description |
new(config)
Signature: config:Configuration -> WorkerService
|
MBrace Runtime Service. CompiledName: |
new(config, workerId)
Signature: (config:Configuration * workerId:string) -> WorkerService
|
CompiledName: |
Instance members
Instance member | Description |
AttachLogger(logger)
Signature: logger:ISystemLogger -> IDisposable
|
Attach logger to worker. Return an unsubscribe token. |
Configuration()
Signature: unit -> Configuration
|
Get or set service configuration. CompiledName: |
Configuration()
Signature: unit -> unit
|
Get or set service configuration. CompiledName: |
HeartbeatInterval()
Signature: unit -> TimeSpan
|
Get or sets the worker heartbeat update interval CompiledName: |
HeartbeatInterval()
Signature: unit -> unit
|
Get or sets the worker heartbeat update interval CompiledName: |
HeartbeatThreshold()
Signature: unit -> TimeSpan
|
Get or sets the worker heartbeat update interval CompiledName: |
HeartbeatThreshold()
Signature: unit -> unit
|
Get or sets the worker heartbeat update interval CompiledName: |
Id
Signature: string
|
Get service unique identifier. CompiledName: |
LogFile()
Signature: unit -> string
|
Gets or sets the logfile used by the service. CompiledName: |
LogFile()
Signature: unit -> unit
|
Gets or sets the logfile used by the service. CompiledName: |
LogLevel()
Signature: unit -> LogLevel
|
Get or set the logger verbosity. CompiledName: |
LogLevel()
Signature: unit -> unit
|
Get or set the logger verbosity. CompiledName: |
MaxConcurrentWorkItems()
Signature: unit -> int
|
Get or set the maximum number of jobs that this worker may execute concurrently. CompiledName: |
MaxConcurrentWorkItems()
Signature: unit -> unit
|
Get or set the maximum number of jobs that this worker may execute concurrently. CompiledName: |
RegisterAtomProvider(atom)
Signature: atom:ICloudAtomProvider -> unit
|
Register a CloudAtomConfiguration instance. Defaults to table store implementation with configuration's storage connection string. |
RegisterDictionaryProvider(dictionary)
Signature: dictionary:ICloudDictionaryProvider -> unit
|
Register an ICloudChannelProvider instance. Defaults to Service Bus queue implementation with configuration's Service Bus connection string. |
RegisterQueueProvider(channel)
Signature: channel:ICloudQueueProvider -> unit
|
Register a CloudQueueConfiguration instance. Defaults to Service Bus queue implementation with configuration's Service Bus connection string. |
RegisterResource(resource)
Signature: resource:'TResource -> unit
Type parameters: 'TResource |
Add a custom resource in workers ResourceRegistry. |
RegisterStoreConfiguration(store)
Signature: store:ICloudFileStore -> unit
|
Register a CloudFileStoreConfiguration instance. Defaults to BlobStore with configuration's storage connection string. |
Run()
Signature: unit -> unit
|
Synchronously starts the worker service with specified configuration and blocks the calling thread until stopped. |
Start()
Signature: unit -> unit
|
Synchronously starts the worker service with specified configuration |
StartAsTask()
Signature: unit -> Task<unit>
|
Asynchronously starts the service with specified configuration |
StartAsync()
Signature: unit -> Async<unit>
|
Asynchronously starts the service with specified configuration |
Status
Signature: ServiceStatus
|
Gets the current service status CompiledName: |
Stop()
Signature: unit -> unit
|
Synchronously stops the worker service |
StopAsTask()
Signature: unit -> Task<unit>
|
Asynchronously stops the worker service |
StopAsync()
Signature: unit -> Async<unit>
|
Asynchronously stops the worker service |
UseAppDomainIsolation()
Signature: unit -> bool
|
Get or set off AppDomain isolation will be used. CompiledName: |
UseAppDomainIsolation()
Signature: unit -> unit
|
Get or set off AppDomain isolation will be used. CompiledName: |
WorkingDirectory()
Signature: unit -> string
|
Gets or sets the working directory for the worker process CompiledName: |
WorkingDirectory()
Signature: unit -> unit
|
Gets or sets the working directory for the worker process CompiledName: |