Example #1
0
        private async Task ProcessCaptureHelper(TagHelperOutput output, string name = "UniqueValue", int?priority = null)
        {
            var captureTag = new CaptureTagHelper
            {
                Capture     = name,
                Priority    = priority,
                ViewContext = _viewContext
            };

            await captureTag.ProcessAsync(CreateHelperContext(), output);
        }
Example #2
0
        public async Task <string> Capture()
        {
            await _captureTag.ProcessAsync(_captureContext, _captureOutput);

            return(_captureOutput.Content.GetContent());
        }