예제 #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);
 }
 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))
 {
 }
 public DefaultAssemblyResolver(AssemblyPathResolverCache pathRespository)
     : base(pathRespository, /*Telerik Authroship*/ TargetPlatformResolver.Instance)
 {
 }
 public WeakAssemblyResolver(AssemblyPathResolverCache cache)
 {
     base(new WeakAssemblyResolver.WeakAssemblyCache(cache));
     return;
 }
 public ThreadSafeWeakAssemblyResolver(AssemblyPathResolverCache cache)
 {
     this.resolvedAssembliesAccessLock = new Object();
     base(cache);
     return;
 }
 public DefaultAssemblyResolver(AssemblyPathResolverCache pathRespository)
     : base(pathRespository)
 {
 }