コード例 #1
0
        // TODO -- unit tests here.  Get the thrown errors too.
        public object Build(IPipelineContext context, IPluginType pluginType)
        {
            // Move interception within context here
            return context.WithinFrame(pluginType, () =>
            {
                var value = 400.IsThrownBy(() => _builder.Build(pluginType, context));

                270.IsThrownBy(() => { value = Interceptor.Process(value, context); }, Name, pluginType);

                return value;
            });

            throw new NotImplementedException();
        }