Example #1
0
        public override bool CanWriteResult(OutputFormatterCanWriteContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            return(_jsonMediaTypeFormatter.CanWriteResult(context));
        }
 public bool CanWriteResult(OutputFormatterCanWriteContext context)
 {
     return(context.ObjectType == typeof(HALResponse) || jsonFormatter.CanWriteResult(context));
 }