MassTransit.Host.AssemblyScanner.IsHostBusFactoryType C# (CSharp) Method

IsHostBusFactoryType() private method

private IsHostBusFactoryType ( Type type ) : bool
type System.Type
return bool
        bool IsHostBusFactoryType(Type type)
        {
            foreach (var interfaceType in type.GetInterfaces())
            {
                var name = interfaceType.GetTypeName();

                if (name.Equals(_hostBusFactoryTypeName, StringComparison.InvariantCultureIgnoreCase))
                    return true;
            }

            return false;
        }