Uredi

Deli z drugimi prek


<behavior> of <serviceBehaviors> of workflow

The behavior element contains a collection of settings for the behavior of a service. Each behavior is indexed by its name. Services can link to each behavior through this name using the behaviorConfiguration attribute of the <endpoint> element. This allows endpoints to share common behavior configurations without redefining the settings.

<configuration>
  <system.ServiceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior>

Syntax

<system.ServiceModel>
  <behaviors>
    <serviceBehaviors>
      <behavior name="String">
        <bufferReceive maxPendingMessagesPerChannel="Integer" />
        <etwTracking profileName="String" />
        <sendMessageChannelCache allowUnsafeCaching="Boolean">
          <channelSettings idleTimeout="TimeSpan"
                           leaseTimeout="TimeSpan"
                           maxItemsInCache="Integer" />
          <factorySettings idleTimeout="TimeSpan"
                           leaseTimeout="TimeSpan"
                           maxItemsInCache="Integer" />
        </sendMessageChannelCache>
        <sqlWorkflowInstanceStore connectionStringName="String"
                                  hostLockRenewalPeriod="TimeSpan"
                                  instanceCompletionAction="DeleteNothing/DeleteAll"
                                  instanceEncodingAction="None/GZip"
                                  instanceLockedExceptionAction="NoRetry/BasicRetry/AggressiveRetry"
                                  runnableInstancesDetectionPeriod="TimeSpan" />
        <workflowIdle timeToPersist="TimeSpan"
                      timeToUnload="TimeSpan" />
        <workflowUnhandledException action="Abandon/AbandonAndSuspend/Cancel/Terminate" />
      </behavior>
    </serviceBehaviors>
  </behaviors>
</system.ServiceModel>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
name A unique string that contains the configuration name of the behavior. This value is a user-defined string that must be unique, since it acts as the identification string for the element.

Child Elements

Element Description
<bufferReceive> A service behavior that enables a service to use buffered receive processing, which enables a workflow service to process out-of-order messages.
<routing> A service behavior that allows a service to utilize ETW tracking using an EtwTrackingParticipant.
<sendMessageChannelCache> A service behavior that enables the customization of the cache sharing levels, the settings of the channel factory cache, and the settings of the channel cache for workflows that send messages to service endpoints using Send messaging activities.
<sqlWorkflowInstanceStore> A service behavior that allows you to configure the SqlWorkflowInstanceStore feature, which supports persisting state information for workflow service instances into an SQL Server 2005 or SQL Server 2008 database.
<workflowIdle> A service behavior that controls when idle workflow instances are unloaded and persisted.
<workflowInstanceManagement> A service behavior that enables you to specify settings that control how workflow instances are run, including persistence, unhandled Exception behavior and idle behavior.
<workflowUnhandledException> A service behavior that enables you to specify the action to take when an unhandled exception occurs within a workflow service.

Parent Elements

Element Description
<serviceBehaviors> A collection of service behavior elements.