NServiceBus.RegisterStepExtensions.GetBehaviorInterface C# (CSharp) Method

GetBehaviorInterface() public static method

public static GetBehaviorInterface ( this behaviorType ) : Type
behaviorType this
return System.Type
        public static Type GetBehaviorInterface(this Type behaviorType)
        {
            return behaviorType.GetInterfaces()
                .First(x => x.IsGenericType && x.GetGenericTypeDefinition() == BehaviorInterfaceType);
        }