NServiceBus.RegisterStepExtensions.GetContextType C# (CSharp) Method

GetContextType() public static method

public static GetContextType ( this behaviorType ) : Type
behaviorType this
return System.Type
        public static Type GetContextType(this Type behaviorType)
        {
            var behaviorInterface = behaviorType.GetBehaviorInterface();
            return behaviorInterface.GetGenericArguments()[0];
        }