[This is prerelease documentation and is subject to change in future releases.]
The WorkerRole element describes a role that performs background processing for the service.
A service may contain zero or more worker roles.
<ServiceDefinition>
<WorkerRole name="<name>" enableNativeCodeExecution="true|false">
<LocalStorage name="<name>" sizeInMb="<n>" />
<ConfigurationSettings />
<InputEndpoints />
</ServiceDefinition>
The following sections describe attributes, child elements, and parent elements for this element.
Attributes
|
Attribute
|
Type
|
Description
|
|---|
name | string | The name for the worker role. The role's name must be unique. |
enableNativeCodeExecution | boolean | Set this attribute to true to enable native code execution for the worker role. |
Child Elements
|
Element
|
Type
|
Description
|
|---|
LocalStorage | LocalStore | The local store for the worker role. |
ConfigurationSettings | N/A | The collection of configuration settings for the worker role. |
InputEndpoints | InputEndpoints | The collection of input endpoints for the worker role. |
Parent Elements
Concepts
Service Definition Schema
Copyright © 2009 by Microsoft Corporation. All rights reserved.