CreateAssembly() public static method

Creates a topic from the specified assembly.
public static CreateAssembly ( Assembly assembly ) : PublisherFilter
assembly System.Reflection.Assembly
return PublisherFilter
Beispiel #1
0
 /// <summary>
 /// Ignore all messages of this verbose level.
 /// </summary>
 public void IgnoreAssembly(string assemblyExpression, VerboseLevel level)
 {
     if (assemblyExpression == null)
     {
         throw new ArgumentNullException(nameof(assemblyExpression));
     }
     m_subscriber.Subscribe(PublisherFilter.CreateAssembly(assemblyExpression), MessageAttributeFilter.Create(level), true);
 }
Beispiel #2
0
 /// <summary>
 /// Subscribes to the publisher of the specified assembly with the specified verbose level.
 /// </summary>
 public void SubscribeToAssembly(Assembly assembly, VerboseLevel level)
 {
     if (assembly == null)
     {
         throw new ArgumentNullException(nameof(assembly));
     }
     m_subscriber.Subscribe(PublisherFilter.CreateAssembly(assembly), MessageAttributeFilter.Create(level), false);
 }