public StringProvider(IHandler parent, string data, FlexibleContentType contentType) { Parent = parent; Content = new StringContent(data); ContentType = contentType; }
public DownloadProvider(IHandler parent, IResourceProvider resourceProvider, FlexibleContentType contentType) { Parent = parent; ResourceProvider = resourceProvider; ContentType = contentType; }
public BundleProvider(IHandler parent, IEnumerable <IResourceProvider> items, FlexibleContentType contentType) { Parent = parent; ContentType = contentType; Items = items; }
public ContentElement(string path, string title, FlexibleContentType contentType, IEnumerable <ContentElement>?children = null) { Path = path; Title = title; Children = children; ContentType = contentType; }
public ContentElement(string path, ContentInfo details, FlexibleContentType contentType, IEnumerable <ContentElement>?children = null) { Path = path; Details = details; Children = children; ContentType = contentType; }
private ISerializationFormat?GetFormat(FlexibleContentType contentType) { return(Formats.ContainsKey(contentType) ? Formats[contentType] : null); }
public SerializationRegistry(FlexibleContentType defaultType, Dictionary <FlexibleContentType, ISerializationFormat> formats) { Default = defaultType; Formats = formats; }
public SerializationBuilder Add(FlexibleContentType contentType, ISerializationFormat format) { _Registry[contentType] = format; return(this); }
public SerializationBuilder Default(FlexibleContentType contentType) { _Default = contentType; return(this); }
public static IEnumerable <ContentElement> GetContent(this IHandler handler, IRequest request, ContentInfo details, FlexibleContentType contentType) { return(new List <ContentElement>() { new ContentElement(handler.GetRoot(request, false), details, contentType, null) }); }
public BundleBuilder ContentType(FlexibleContentType type) { _ContentType = type; return(this); }
public static IEnumerable <ContentElement> GetContent(this IHandler handler, IRequest request, string title, FlexibleContentType contentType) { return(new List <ContentElement>() { new ContentElement(handler.GetRoot(request.Server.Handler, false), title, contentType, null) }); }
public IResponseBuilder Type(FlexibleContentType contentType) { _ContentType = contentType; return(this); }
public ContentElement(WebPath path, ContentInfo details, FlexibleContentType contentType, IEnumerable <ContentElement>?children = null) : this(path.ToString(), details, contentType, children) { }
public ContentElement(WebPath path, string title, FlexibleContentType contentType, IEnumerable <ContentElement>?children = null) : this(path.ToString(), title, contentType, children) { }