public static IReferenceLoaderSettings GetSettings(this ReferenceLoaderStrategy strategy) { switch (strategy) { case ReferenceLoaderStrategy.CopyRefContent: return(new DefaultSettings()); case ReferenceLoaderStrategy.RefContentCopyNoRemote: return(new RefContentCopyNoRemoteSettings()); default: throw new NotImplementedException($"{strategy} settings strategy not implemented"); } }
internal ReferenceLoader(string fileUri, Dictionary <Uri, ReferenceLoader> loaders, ReferenceLoaderStrategy strategy, string authorization = null) : this(fileUri.GetAbsoluteUri(), loaders, strategy.GetSettings(), authorization) { }
internal ReferenceLoader(Uri documentUri, Dictionary <Uri, ReferenceLoader> loaders, ReferenceLoaderStrategy strategy, string authorization = null) : this(documentUri, loaders, strategy.GetSettings(), authorization) { }
public ReferenceLoader(string fileUri, ReferenceLoaderStrategy strategy, string authorization = null) : this(fileUri.GetAbsoluteUri(), null, strategy, authorization) { }