src/Orleans.Core/Manifest/GrainVersionManifest.cs
/// <summary>
/// Gets the local version for a specified grain interface type.
/// </summary>
/// <param name="interfaceType">The grain intrerface type name.</param>
/// <returns>The version of the specified grain interface.</returns>
Gets the local version for a specified grain interface type.
Gets the local version for a specified grain interface type .
public ushort GetLocalVersion(GrainInterfaceType interfaceType)
        {
            if (_localVersions.TryGetValue(interfaceType, out var result))
            {
                return result;
            }
            if (_genericInterfaceMapping.TryGetValue(interfaceType, out var genericInterfaceId))
            {
                return GetLocalVersion(genericInterfaceId);
            }
            if (GenericGrainInterfaceType.TryParse(interfaceType, out var generic) && generic.IsConstructed)
            {
                var genericId = _genericInterfaceMapping[interfaceType] = generic.GetGenericGrainType().Value;
                return GetLocalVersion(genericId);
            }
            return 0;
        }
public ushort GetLocalVersion ( GrainInterfaceType interfaceType ) { if ( _localVersions . TryGetValue ( interfaceType , out var result ) ) { return result ; } if ( _genericInterfaceMapping . TryGetValue ( interfaceType , out var genericInterfaceId ) ) { return GetLocalVersion ( genericInterfaceId ) ; } if ( GenericGrainInterfaceType . TryParse ( interfaceType , out var generic ) && generic . IsConstructed ) { var genericId = _genericInterfaceMapping [ interfaceType ] = generic . GetGenericGrainType ( ) . Value ; return GetLocalVersion ( genericId ) ; } return 0 ; }
Gets the local version for a specified grain interface type.
Gets the local version for a specified grain interface type .
The version of the specified grain interface.
The version of the specified grain interface .
interfaceType
GrainInterfaceType
The grain intrerface type name.
The grain intrerface type name .