Class PersistableHashCode
Custom Hashcode generation so that it can be persisted in the database. Initially only supports generating hashcodes on a configuration set.
WARNING: Do not change as there may already be configurations in the database that use the hashcode in the identifier. Otherwise it will be be able to re-use an existing config.
Inheritance
System.Object
    PersistableHashCode
  Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public static class PersistableHashCode : Object
  Methods
GetPersistableHashCode(ConfigurationSet)
Generates a hashcode for a configuration set that can be persisted in the database
WARNING: Do not change the order as this will change the hashcode!
Declaration
public static int GetPersistableHashCode(this ConfigurationSet configurationSet)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ConfigurationSet | configurationSet | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | Hashcode  | 
      
GetPersistableHashCode<T>(SessionDataItemsCollection<T>)
Generates a unique hashcode for session details.
Declaration
public static int GetPersistableHashCode<T>(SessionDataItemsCollection<T> sessionDataItems)
    where T : SessionDataItem
  Parameters
| Type | Name | Description | 
|---|---|---|
| SessionDataItemsCollection<T> | sessionDataItems | 
Returns
| Type | Description | 
|---|---|
| System.Int32 | Hashcode  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T |