コード例 #1
0
        private static void AddProfileToContentType(ResultExecutingContext context, SchemaAttribute schemaAttribute, bool keepUnquoted = false)
        {
            var profile = keepUnquoted ? schemaAttribute.SchemaFilePath
                                : $"\"{schemaAttribute.SchemaFilePath?.Replace("\"", "\\\"")}\"";

            context.HttpContext.Response.ContentType += $"; profile={profile}";
        }
コード例 #2
0
 public TypeSchemaPair(Type type, SchemaAttribute schemaAttribute)
 {
     Type            = type;
     SchemaAttribute = schemaAttribute;
 }
コード例 #3
0
 public TypeSchemaPair(Type type, SchemaAttribute schemaAttribute)
 {
     Type = type;
     SchemaAttribute = schemaAttribute;
 }