コード例 #1
0
        /*Telerik Authorship*/
        protected BaseAssemblyResolver(AssemblyPathResolverCache pathRespository, ITargetPlatformResolver targetPlatformResolver)
        {
            directories        = new List <string>();
            resolvedAssemblies = new Dictionary <AssemblyStrongNameExtended, List <AssemblyDefinition> >();
            filePathToAssemblyDefinitionCache = new Dictionary <string, AssemblyDefinition>();
            userDefinedAssemblies             = new List <string>();
            resolvableExtensionsSet           = new HashSet <string>(SystemInformation.ResolvableExtensions);
            architectureStrings = GetArchitectureStrings();
            /*Telerik Authorship*/
            directoryAssemblies = new HashSet <DirectoryAssemblyInfo>();

            /*Telerik Authorship*/
            this.targetPlatformResolver = targetPlatformResolver;
            /*Telerik Authorship*/
            this.readerParameters = new ReaderParameters(this);
            /*Telerik Authorship*/
            assemblyPathResolver = new AssemblyPathResolver(pathRespository, /*Telerik Authorship*/ this.readerParameters, /*Telerik Authorship*/ this.targetPlatformResolver);

            /*Telerik Authorship*/
            this.resolveLock = new ReaderWriterLockSlim();
            /*Telerik Authorship*/
            this.directoriesLock = new ReaderWriterLockSlim();
            /*Telerik Authorship*/
            this.directoryAssembliesLock = new ReaderWriterLockSlim();
        }
コード例 #2
0
 public WeakAssemblyCache(AssemblyPathResolverCache cache)
 {
     this.assemblyFaildedResolver  = cache.AssemblyFaildedResolverCache.Clone();
     this.assemblyNameDefinition   = new Dictionary <string, AssemblyName>(cache.AssemblyNameDefinition);
     this.assemblyParts            = new Dictionary <string, TargetPlatform>(cache.AssemblyParts);
     this.assemblyPathArchitecture = new Dictionary <string, TargetArchitecture>(cache.AssemblyPathArchitecture);
     this.assemblyPathName         = new List <AssemblyPathName>(cache.AssemblyPathName);
 }
コード例 #3
0
 public WeakAssemblyCache(AssemblyPathResolverCache cache)
 {
     base();
     this.assemblyFaildedResolver  = cache.get_AssemblyFaildedResolverCache().Clone();
     this.assemblyNameDefinition   = new Dictionary <string, AssemblyName>(cache.get_AssemblyNameDefinition());
     this.assemblyParts            = new Dictionary <string, TargetPlatform>(cache.get_AssemblyParts());
     this.assemblyPathArchitecture = new Dictionary <string, TargetArchitecture>(cache.get_AssemblyPathArchitecture());
     this.assemblyPathName         = new List <KeyValuePair <AssemblyStrongNameExtended, string> >(cache.get_AssemblyPathName());
     return;
 }
コード例 #4
0
        /*Telerik Authorship*/
        protected BaseAssemblyResolver(AssemblyPathResolverCache pathRespository)
        {
            directories        = new List <string>();
            resolvedAssemblies = new Dictionary <string, List <AssemblyDefinition> >();
            filePathToAssemblyDefinitionCache = new Dictionary <string, AssemblyDefinition>();
            userDefinedAssemblies             = new List <string>();
            resolvableExtensionsSet           = new HashSet <string>(SystemInformation.ResolvableExtensions);
            architectureStrings = GetArchitectureStrings();

            assemblyPathResolver = new AssemblyPathResolver(pathRespository, new ReaderParameters(this));
        }
コード例 #5
0
 public ThreadSafeWeakAssemblyResolver(AssemblyPathResolverCache cache)
     : base(cache)
 {
 }
コード例 #6
0
 public WeakAssemblyResolver(AssemblyPathResolverCache cache)
     : base(new WeakAssemblyCache(cache))
 {
 }
コード例 #7
0
 public DefaultAssemblyResolver(AssemblyPathResolverCache pathRespository)
     : base(pathRespository, /*Telerik Authroship*/ TargetPlatformResolver.Instance)
 {
 }
コード例 #8
0
 public WeakAssemblyResolver(AssemblyPathResolverCache cache)
 {
     base(new WeakAssemblyResolver.WeakAssemblyCache(cache));
     return;
 }
コード例 #9
0
 public ThreadSafeWeakAssemblyResolver(AssemblyPathResolverCache cache)
 {
     this.resolvedAssembliesAccessLock = new Object();
     base(cache);
     return;
 }
コード例 #10
0
 public DefaultAssemblyResolver(AssemblyPathResolverCache pathRespository)
     : base(pathRespository)
 {
 }