src/Orleans.Core/Core/GrainFactory.cs
/// <summary>
/// Validates the provided grain key extension.
/// </summary>
/// <param name="keyExt">The grain key extension.</param>
/// <exception cref="ArgumentNullException">The key is <see langword="null"/>.</exception>
/// <exception cref="ArgumentException">The key is empty or contains only whitespace.</exception>
Validates the provided grain key extension.
Validates the provided grain key extension .
private static void ValidateGrainKeyExtension(string keyExt)
        {
            if (!string.IsNullOrWhiteSpace(keyExt)) return;
            if (null == keyExt)
            {
                throw new ArgumentNullException(nameof(keyExt)); 
            }
            throw new ArgumentException("Key extension is empty or white space.", nameof(keyExt));
        }
private static void ValidateGrainKeyExtension ( string keyExt ) { if ( ! string . IsNullOrWhiteSpace ( keyExt ) ) return ; if ( null == keyExt ) { throw new ArgumentNullException ( nameof ( keyExt ) ) ; } throw new ArgumentException ( " " , nameof ( keyExt ) ) ; }
Validates the provided grain key extension.
Validates the provided grain key extension .
The key is .
The key is .
The key is empty or contains only whitespace.
The key is empty or contains only whitespace .
keyExt
string
The grain key extension.
The grain key extension .