Ejemplo n.º 1
0
 private static void SetupEmbeddedAssemblies()
 {
     EmbeddedAssembly.Load("Ionic.Zip.dll");
     AppDomain.CurrentDomain.AssemblyResolve += delegate(object sender, ResolveEventArgs args)
     {
         return(EmbeddedAssembly.Get(args.Name));
     };
 }
Ejemplo n.º 2
0
 private static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
 {
     try
     {
         return(EmbeddedAssembly.Get(args.Name));
     }
     catch (Exception ex)
     {
         MessageBox.Show("Could not load assembly " + args.Name);
     }
     return(null);
 }
Ejemplo n.º 3
0
 static Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
 {
     return(EmbeddedAssembly.Get(args.Name));
 }
Ejemplo n.º 4
0
 private static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
 {
     return(EmbeddedAssembly.Get(args.Name));
 }
Ejemplo n.º 5
0
        public LegendasTVProvider(
            ILogger logger,
            IHttpClient httpClient,
            IServerConfigurationManager config,
            IEncryptionManager encryption,
            ILocalizationManager localizationManager,
            ILibraryManager libraryManager,
            IJsonSerializer jsonSerializer,
            IServerApplicationPaths appPaths,
            IFileSystem fileSystem,
            IZipClient zipClient)
        {
            _logger              = logger;
            _httpClient          = httpClient;
            _config              = config;
            _encryption          = encryption;
            _libraryManager      = libraryManager;
            _localizationManager = localizationManager;
            _jsonSerializer      = jsonSerializer;
            _appPaths            = appPaths;
            _fileSystem          = fileSystem;
            _zipClient           = zipClient;

            _config.NamedConfigurationUpdating += _config_NamedConfigurationUpdating;

            // Load HtmlAgilityPack from embedded resource
            EmbeddedAssembly.Load(GetType().Namespace + ".HtmlAgilityPack.dll", "HtmlAgilityPack.dll");
            AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler((object sender, ResolveEventArgs args) => EmbeddedAssembly.Get(args.Name));
        }
Ejemplo n.º 6
0
 /// <summary>
 /// Method:         DomainResolve
 /// Description:    This method is used to embedd the dll files into the executable code
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 /// <returns></returns>
 public static Assembly DomainResolve(object sender, ResolveEventArgs args)
 {
     return(EmbeddedAssembly.Get(args.Name));
 }
Ejemplo n.º 7
0
        } // static void Main

        static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
        {
            // calls EmbeddedAssembly class Get function to get the
            // dll into memory! Yay.
            return(EmbeddedAssembly.Get(args.Name));
        }
Ejemplo n.º 8
0
 private Assembly ResolveAssembly(object sender, ResolveEventArgs args)
 {
     return(EmbeddedAssembly.Get(args.Name));
 }
Ejemplo n.º 9
0
 static Assembly VPC_GXT2Editor_AssemblyResolve(object sender, ResolveEventArgs args)
 {
     return(EmbeddedAssembly.Get(args.Name));
 }