NServiceBus.RegisterStepExtensions.IsBehavior C# (CSharp) Method

IsBehavior() public static method

public static IsBehavior ( this behaviorType ) : bool
behaviorType this
return bool
        public static bool IsBehavior(this Type behaviorType)
        {
            return behaviorType.GetInterfaces()
                .Any(x => x.IsGenericType && x.GetGenericTypeDefinition() == BehaviorInterfaceType);
        }