MBrace.Azure


WorkerService

Namespace: MBrace.Azure.Service

MBrace.Azure worker service manager

Constructors

ConstructorDescription
new(config)
Signature: config:Configuration -> WorkerService

MBrace Runtime Service.

CompiledName: .ctor

new(config, workerId)
Signature: (config:Configuration * workerId:string) -> WorkerService

CompiledName: .ctor

Instance members

Instance memberDescription
AttachLogger(logger)
Signature: logger:ISystemLogger -> IDisposable

Attach logger to worker. Return an unsubscribe token.

Configuration()
Signature: unit -> Configuration

Get or set service configuration.

CompiledName: set_Configuration

Configuration()
Signature: unit -> unit

Get or set service configuration.

CompiledName: get_Configuration

HeartbeatInterval()
Signature: unit -> TimeSpan

Get or sets the worker heartbeat update interval

CompiledName: set_HeartbeatInterval

HeartbeatInterval()
Signature: unit -> unit

Get or sets the worker heartbeat update interval

CompiledName: get_HeartbeatInterval

HeartbeatThreshold()
Signature: unit -> TimeSpan

Get or sets the worker heartbeat update interval

CompiledName: set_HeartbeatThreshold

HeartbeatThreshold()
Signature: unit -> unit

Get or sets the worker heartbeat update interval

CompiledName: get_HeartbeatThreshold

Id
Signature: string

Get service unique identifier.

CompiledName: get_Id

LogFile()
Signature: unit -> string

Gets or sets the logfile used by the service.

CompiledName: set_LogFile

LogFile()
Signature: unit -> unit

Gets or sets the logfile used by the service.

CompiledName: get_LogFile

LogLevel()
Signature: unit -> LogLevel

Get or set the logger verbosity.

CompiledName: set_LogLevel

LogLevel()
Signature: unit -> unit

Get or set the logger verbosity.

CompiledName: get_LogLevel

MaxConcurrentWorkItems()
Signature: unit -> int

Get or set the maximum number of jobs that this worker may execute concurrently.

CompiledName: set_MaxConcurrentWorkItems

MaxConcurrentWorkItems()
Signature: unit -> unit

Get or set the maximum number of jobs that this worker may execute concurrently.

CompiledName: get_MaxConcurrentWorkItems

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: get_Status

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: set_UseAppDomainIsolation

UseAppDomainIsolation()
Signature: unit -> unit

Get or set off AppDomain isolation will be used.

CompiledName: get_UseAppDomainIsolation

WorkingDirectory()
Signature: unit -> string

Gets or sets the working directory for the worker process

CompiledName: set_WorkingDirectory

WorkingDirectory()
Signature: unit -> unit

Gets or sets the working directory for the worker process

CompiledName: get_WorkingDirectory

Fork me on GitHub