Exemple #1
0
 /// <summary>
 /// Método acionado quando não for encontrado o assembly
 /// para o export informado.
 /// </summary>
 /// <param name="e"></param>
 public void AssemblyFromExportNotFound(AssemblyFromExportNotFoundEventArgs e)
 {
     foreach (var i in Observers)
     {
         i.AssemblyFromExportNotFound(e);
     }
 }
Exemple #2
0
 /// <summary>
 /// Método acionado quando o assembly do export não for encontrado.
 /// </summary>
 /// <param name="export"></param>
 /// <param name="assemblyName"></param>
 /// <param name="exception">Erro associado.</param>
 protected virtual void OnAssemblyFromExportNotFound(Colosoft.Reflection.Composition.IExport export, System.Reflection.AssemblyName assemblyName, Exception exception)
 {
     if (AssemblyFromExportNotFound != null)
     {
         var args = new AssemblyFromExportNotFoundEventArgs(export, assemblyName, exception);
         AssemblyFromExportNotFound(this, args);
         _observer.AssemblyFromExportNotFound(args);
         if (args.IsErrorHandled)
         {
             return;
         }
     }
     throw new InvalidOperationException(ResourceMessageFormatter.Create(() => Properties.Resources.InvalidOperation_AssemblyFromExportNotFound, assemblyName, export).Format(), exception);
 }
Exemple #3
0
 /// <summary>
 /// Método acionado quando não for encontrado o assembly
 /// para o export informado.
 /// </summary>
 /// <param name="e"></param>
 public void AssemblyFromExportNotFound(AssemblyFromExportNotFoundEventArgs e)
 {
     _logger.Error(ResourceMessageFormatter.Create(() => Properties.Resources.LoggerAssemblyRepositoryCatalogObserver_AssemblyFromExportNotFound, e.AssemblyName.FullName));
 }