Bari.Core.Build.BuildContext.CreateCachedBuilder C# (CSharp) Method

CreateCachedBuilder() private method

private CreateCachedBuilder ( IBuilder builder, IBuilderStatistics statistics ) : IBuilder
builder IBuilder
statistics IBuilderStatistics
return IBuilder
        private IBuilder CreateCachedBuilder(IBuilder builder, IBuilderStatistics statistics)
        {
            if (builder.GetType().GetCustomAttributes(typeof (ShouldNotCacheAttribute), true).Any())
            {
                return builder;
            }
            else
            {
                return cachedBuilderFactory.CreateCachedBuilder(CreateMonitoredBuilder(builder, statistics));
            }
        }