A service to slot ratio, which describes how many slots a service instance consumes.

C# |
public sealed class ServiceToSlotRatio

All Members | Constructors | Properties | |||
Icon | Member | Description |
---|---|---|
![]() | ServiceToSlotRatio(UInt32, UInt32) | Constructs a ServiceToSlotRatio object. |
![]() | NumberOfServices | Gets the number of services portion (the numerator) of the ServiceToSlotRatio. |
![]() | NumberOfSlots | Gets the number of slots portion (the denominator) of the ServiceToSlotRatio. |

The ratio must be either 1:N or N:1, where N is a positive integer. For N:1, the maximum value of N is 10. A 1:N ratio means that 1 service instance runs on multiple slots. An N:1 ratio means that multiple service instances run on 1 slot. When specified to create a session, this ratio indicates how many slots a service instance requires in order to run tasks from this session. The ratio will be validated when the SessionCreationAttributes.ServiceToSlotRatio property is set.
NOTE: If any of the methods of this class are called after the main(...) method exits, the client or service process may behave in an undefined manner (for example, hang or terminate abnormally).

Object | |
![]() | ServiceToSlotRatio |