Show / Hide Table of Contents

# Class ServiceConfiguration

Service configuration.

##### Inheritance

System.Object
ServiceConfiguration

##### Inherited Members

System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()

###### Namespace: Apache.Ignite.Core.Services

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    [Serializable]
    public class ServiceConfiguration

### Constructors

#### ServiceConfiguration()

Default constructor

##### Declaration

    public ServiceConfiguration()

### Properties

#### AffinityKey

Gets or sets affinity key used for key-to-node affinity calculation.

##### Declaration

    public object AffinityKey { get; set; }

##### Property Value

Type | Description
--- | ---
System.Object |

#### CacheName

Gets or sets cache name used for key-to-node affinity calculation.

##### Declaration

    public string CacheName { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### MaxPerNodeCount

Gets or sets maximum number of deployed service instances on each node, 0 for unlimited.

##### Declaration

    public int MaxPerNodeCount { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |

#### Name

Gets or sets the service name.

##### Declaration

    public string Name { get; set; }

##### Property Value

Type | Description
--- | ---
System.String |

#### NodeFilter

Gets or sets node filter used to filter nodes on which the service will be deployed.

##### Declaration

    public IClusterNodeFilter NodeFilter { get; set; }

##### Property Value

Type | Description
--- | ---
IClusterNodeFilter |

#### Service

Gets or sets the service instance.

##### Declaration

    public IService Service { get; set; }

##### Property Value

Type | Description
--- | ---
IService |

#### TotalCount

Gets or sets the total number of deployed service instances in the cluster, 0 for unlimited.

##### Declaration

    public int TotalCount { get; set; }

##### Property Value

Type | Description
--- | ---
System.Int32 |