Class ITaggedInstanceExtensions
- Namespace
- Songhay.Extensions
- Assembly
- SonghayCore.dll
Extensions of ITaggedInstance
public static class ITaggedInstanceExtensions
- Inheritance
-
ITaggedInstanceExtensions
- Inherited Members
Methods
EnsureExpectedInstance(ITaggedInstance?, string?)
Throws ConfigurationErrorsException
when IsExpectedInstance(ITaggedInstance?, string?) returns false.
public static void EnsureExpectedInstance(this ITaggedInstance? instance, string? instanceTag)
Parameters
instanceITaggedInstancethe ITaggedInstance
instanceTagstringthe conventional identifier
Exceptions
IsExpectedInstance(ITaggedInstance?, string?)
Returns true when InstanceTag equals the specified identifier.
public static bool IsExpectedInstance(this ITaggedInstance? instance, string? instanceTag)
Parameters
instanceITaggedInstancethe ITaggedInstance
instanceTagstringthe conventional identifier