public static DocumentLinkOptions Of(IDocumentLinkOptions options) { return(new DocumentLinkOptions() { ResolveProvider = options.ResolveProvider }); }
public static DocumentLinkOptions Of(IDocumentLinkOptions options, IEnumerable <IHandlerDescriptor> descriptors) { return(new DocumentLinkOptions() { ResolveProvider = options.ResolveProvider || descriptors.Any(z => z.HandlerType == typeof(IDocumentLinkResolveHandler)), WorkDoneProgress = options.WorkDoneProgress, }); }
public static DocumentLinkOptions Of(IDocumentLinkOptions options) { return(new DocumentLinkOptions() { ResolveProvider = options.ResolveProvider, WorkDoneProgress = options.WorkDoneProgress, }); }