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

GetResults() public method

Gets the result paths returned by the given builder if it has already ran. Otherwise it throws an exception.
public GetResults ( IBuilder builder ) : ISet
builder IBuilder Builder which was added previously with and was already executed.
return ISet
        public ISet<TargetRelativePath> GetResults(IBuilder builder)
        {
            ISet<TargetRelativePath> builderResult;
            if (partialResults.TryGetValue(builder, out builderResult))
                return builderResult;
            else
                throw new InvalidOperationException(String.Format("Builder {0} has not ran in this context", builder));
        }