thrownewArgumentException($"Can not instantiate {typeof(T).Name}- object. Active lock service {activeName} must be contained in [{String.Join(",", serviceDict)}].");
}
Active=serviceDict[activeName];
}
/// <summary> Active locks service.</summary>
publicTActive{get;privateset;}
/// <summary> Sets a lock service as active locks service by name. </summary>
/// <param name="active">Name of the new locks service.</param>
publicvoidSetActive(stringactive)
{
if(!serviceDict.ContainsKey(active))
{
thrownewArgumentException($"Can not set active lock service {active}. Service must be contained in [{String.Join(",", serviceDict)}].");