コード例 #1
0
        public async Task <IHtmlContent> ShapeExecuteAsync(object shape)
        {
            if (shape == null)
            {
                return(new HtmlString(string.Empty));
            }

            var context = new DisplayContext {
                Display = this, Value = shape, ViewContext = ViewContext
            };

            return(await _displayManager.ExecuteAsync(context));
        }