GSF.Diagnostics.PublisherFilter.CreateAssembly C# (CSharp) Method

CreateAssembly() public static method

Creates a topic from the specified assembly.
public static CreateAssembly ( Assembly assembly ) : PublisherFilter
assembly System.Reflection.Assembly
return PublisherFilter
        public static PublisherFilter CreateAssembly(Assembly assembly)
        {
            if ((object)assembly == null)
                throw new ArgumentNullException(nameof(assembly));

            string path = assembly.Location;
            string name = Path.GetFileName(path);
            return CreateAssembly(name);
        }

Same methods

PublisherFilter::CreateAssembly ( string name ) : PublisherFilter

Usage Example

Example #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);
 }
All Usage Examples Of GSF.Diagnostics.PublisherFilter::CreateAssembly