System.ServiceModel 4.0.0.0 System.Object System.ServiceModel.Description.IServiceBehavior

Use the class to control various throughput settings that help prevent your application from running out of memory.

The property limits the number of messages that currently process across a .

The property limits the number of objects that execute at one time across a .

The property limits the number of sessions a object can accept.

Because run-time load balancing requires experience running the application, using the through an application configuration file is the most common method of modifying execution to maximize service performance.

A trace is written every time the value of these properties is reached. The first trace is written as a warning.

You can also set the values of this attribute by using the <serviceThrottling> element in an application configuration file.

Configures run-time throughput settings that enable you to tune service performance.

- Constructor
  4.0.0.0

  Use the constructor when adding a configured programmatically.

  Initializes a new instance of the class.

- Property
  4.0.0.0
  System.Int32 To be added.

  The property specifies the maximum number of messages actively processing across a object. Each channel can have one pending message that does not count against the value of until indigo1 begins to process it.

  You can also set the values of this attribute by using the <serviceThrottling> element in an application configuration file.

  should be set to less than the SQL connection pool size in queued scenarios.

  Gets or sets a value that specifies the maximum number of messages actively processing across a .

- Property
  4.0.0.0
  System.Int32 To be added.

  The property specifies the maximum number of objects in the service. It is important to keep in mind the relationship between the property and the property. If is , the resulting value is the total number of sessions. If is , the resulting value is the number of concurrent calls. If a message arrives while the maximum number of objects already exist, the message is held until an object closes.

  You can also set the values of this attribute by using the <serviceThrottling> element in an application configuration file.

  Gets or sets a value that specifies the maximum number of objects in the service that can execute at one time.

- Property
  4.0.0.0
  System.Int32 To be added.

  The property specifies the maximum number of sessions a object can accept. It is important to understand that sessions in this case does not mean only channels that support reliable sessions (for example, supports sessions but does not include reliable sessions).

  Each listener object can have one pending channel session that does not count against the value of until indigo2 accepts the channel session and begins processing messages on it. This property is most useful in scenarios that make use of sessions.

  When this property is set to a value less than the number of client threads, the requests from multiple clients may get queued in the same socket connection. The requests from the client that has not created a session with the service will be blocked till the service closes its session with the other clients if number of open sessions on the service has reached MaxConcurrentSessions. The client requests that are not served get timed out and the service closes the session abruptly.

  To avoid this situation, run the client threads from different app domains so that the request messages go into different socket connections.

  You can also set the values of this attribute by using the <serviceThrottling> element in an application configuration file.

  Gets or sets a value that specifies the maximum number of sessions a object can accept at one time.

- Method
  4.0.0.0
  System.Void `` `` `` ``

  Implements the method.

  Configures the bindings to support the service behavior.

  The service description. The host for the service. The endpoints exposed by the service. The binding parameters to be configured to support the service behavior.
- Method
  4.0.0.0
  System.Void `` ``

  Implements the method.

  Configures the service to support the service behavior.

  The service description to be configured. The host for the service.
- Method
  4.0.0.0
  System.Void `` ``

  Implements the method.

  Validates that the service and host can support the service behavior.

  The service description to be validated by the service behavior. The service host to be validated by the service behavior.