コード例 #1
0
        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");
            }
        }
コード例 #2
0
 internal ReferenceLoader(string fileUri, Dictionary <Uri, ReferenceLoader> loaders, ReferenceLoaderStrategy strategy, string authorization = null)
     : this(fileUri.GetAbsoluteUri(), loaders, strategy.GetSettings(), authorization)
 {
 }
コード例 #3
0
 internal ReferenceLoader(Uri documentUri, Dictionary <Uri, ReferenceLoader> loaders, ReferenceLoaderStrategy strategy, string authorization = null)
     : this(documentUri, loaders, strategy.GetSettings(), authorization)
 {
 }
コード例 #4
0
 public ReferenceLoader(string fileUri, ReferenceLoaderStrategy strategy, string authorization = null)
     : this(fileUri.GetAbsoluteUri(), null, strategy, authorization)
 {
 }