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,
     });
 }
Пример #3
0
 public static DocumentLinkOptions Of(IDocumentLinkOptions options)
 {
     return(new DocumentLinkOptions()
     {
         ResolveProvider = options.ResolveProvider,
         WorkDoneProgress = options.WorkDoneProgress,
     });
 }