BeiDream.Core.Domain.Uow.Interception.UnitOfWorkInterceptor.GetNoUnitOfWorkAttributeOrNull C# (CSharp) Метод

GetNoUnitOfWorkAttributeOrNull() статический приватный Метод

static private GetNoUnitOfWorkAttributeOrNull ( MemberInfo methodInfo ) : NoUnitOfWorkAttribute
methodInfo System.Reflection.MemberInfo
Результат NoUnitOfWorkAttribute
        internal static NoUnitOfWorkAttribute GetNoUnitOfWorkAttributeOrNull(MemberInfo methodInfo)
        {
            var attrs = methodInfo.GetCustomAttributes(typeof(NoUnitOfWorkAttribute), false);
            if (attrs.Length > 0)
            {
                return (NoUnitOfWorkAttribute)attrs[0];
            }
            return null;
        }