System.ServiceModel 4.0.0.0 System.Object

Quotas are used as a policy mechanism to prevent the consumption of excessive resources. They prevent Denial of Service (DOS) attacks that are either malicious or unintentional. Use this class when setting channel quotas on a custom channel.

specifies three quotas:

to specify the maximum interval of time for which the channels in the pool can be idle before being closed.

to specify the interval of time after which a channel, when returned to the pool, is closed.

to specify the maximum number of channels that can be stored in the pool for each remote endpoint.

Specifies quotas for channels that belong to a pool of channels used by a service endpoint.

- Constructor
  4.0.0.0

  The default values set are:

  : 2 minutes.

  : 10 minutes.

  : 10 channels.

  These default quota values are based on a conservatively modest allocation of resources that are suitable for development environments and small installation scenarios. Service administrators should review channel quotas and tune individual quota values if an installation is running out of resources or if connections are being limited despite the availability of additional resources.

  Initializes a new instance of the class.

- Property
  4.0.0.0
  System.TimeSpan To be added.

  The quota is used to mitigate Denial of Service (DOS) attacks on the server that rely on tying up resources for an extended period of time. On the client, setting the correct value can increase the reliability of connecting with the service. The default value is based on a conservatively modest allocation of resources. It is suitable for a development environment and small installation scenarios. Service administrators should review the value if an installation is running out of resources or if connections are being limited despite the availability of additional resources.

  Get or sets the maximum interval of time for which the channels in the pool can be idle before being closed.

- Property
  4.0.0.0
  System.TimeSpan To be added.

  The quota is used to for integration with load balancers and for improving reliability. The default value is based on a conservative allocation of resources. It is suitable for a development environment and small installation scenarios. Service administrators should review the value if an installation is running out of resources or if connections are being limited despite the availability of additional resources.

  Gets or sets the lifetime of a channel, after which it is closed.

- Property
  4.0.0.0
  System.Int32 To be added.

  The quota sets cache limits on both the server and the client and is used to improve reliability. The default value is based on a conservatively modest allocation of resources that is suitable for a development environment and small installation scenarios. Service administrators should review the value if an installation is running out of resources or if connections are being limited despite the availability of additional resources.

  Gets or sets the maximum number of channels connecting to remote endpoints that can be initiated by the service.