src/Orleans.Core/Manifest/ImplementedInterfaceProvider.cs
/// <summary>
/// Gets a value indicating whether the specified type is a grain interface type.
/// </summary>
/// <param name="type">The type to inspect.</param>
/// <returns>A value indicating whether the specified type is a grain interface type.</returns>
Gets a value indicating whether the specified type is a grain interface type.
Gets a value indicating whether the specified type is a grain interface type .
public static bool IsGrainInterface(Type type)
        {
            if (type.IsClass)
                return false;
            if (type == typeof(IGrainObserver) || type == typeof(IAddressable) || type == typeof(IGrainExtension))
                return false;
            if (type == typeof(IGrain) || type == typeof(IGrainWithGuidKey) || type == typeof(IGrainWithIntegerKey)
                || type == typeof(IGrainWithGuidCompoundKey) || type == typeof(IGrainWithIntegerCompoundKey))
                return false;
            if (type == typeof(ISystemTarget))
                return false;
            return typeof(IAddressable).IsAssignableFrom(type);
        }
public static bool IsGrainInterface ( Type type ) { if ( type . IsClass ) return false ; if ( type == typeof ( IGrainObserver ) || type == typeof ( IAddressable ) || type == typeof ( IGrainExtension ) ) return false ; if ( type == typeof ( IGrain ) || type == typeof ( IGrainWithGuidKey ) || type == typeof ( IGrainWithIntegerKey ) || type == typeof ( IGrainWithGuidCompoundKey ) || type == typeof ( IGrainWithIntegerCompoundKey ) ) return false ; if ( type == typeof ( ISystemTarget ) ) return false ; return typeof ( IAddressable ) . IsAssignableFrom ( type ) ; }
Gets a value indicating whether the specified type is a grain interface type.
Gets a value indicating whether the specified type is a grain interface type .
A value indicating whether the specified type is a grain interface type.
A value indicating whether the specified type is a grain interface type .
type
Type
The type to inspect.
The type to inspect .