src/Uno.Diagnostics.Eventing.Providers/FileEventSink.Manifest.cs
/// <summary>
/// Generates the manifest associated with the generated trace.
/// </summary>
/// <remarks>The implicit convention is that a traceable class will 
/// include a TraceProvider inner class, an Id field of type Guid, and fields
/// of type Int32 to declare events.
/// </remarks>
/// <param name="manifestFile"></param>
Generates the manifest associated with the generated trace.
Generates the manifest associated with the generated trace .
public static void GenerateManifest(Assembly[] assemblies, string manifestFile)
		{
			var q = ManifestProvider.GetProviders();
			var serializer = new XmlSerializer(typeof(Manifest), new[] { typeof(ManifestProvider), typeof(ManifestEvent) });
			var manifestFilePath = manifestFile + ".manifest";
			using (var s = File.OpenWrite(manifestFilePath))
			{
				serializer.Serialize(s, new Manifest() { Providers = q.ToArray() });
			}
			Console.WriteLine($"Generated trace manifest file {manifestFilePath}");
		}
public static void GenerateManifest ( Assembly [ ] assemblies , string manifestFile ) { var q = ManifestProvider . GetProviders ( ) ; var serializer = new XmlSerializer ( typeof ( Manifest ) , new [ ] { typeof ( ManifestProvider ) , typeof ( ManifestEvent ) } ) ; var manifestFilePath = manifestFile + " " ; using ( var s = File . OpenWrite ( manifestFilePath ) ) { serializer . Serialize ( s , new Manifest ( ) { Providers = q . ToArray ( ) } ) ; } Console . WriteLine ( $" Generated trace manifest file  { manifestFilePath } " ) ; }
Generates the manifest associated with the generated trace.
Generates the manifest associated with the generated trace .
assemblies
Assembly[]
manifestFile
string
None
remarks
The implicit convention is that a traceable class will
include a TraceProvider inner class, an Id field of type Guid, and fields
of type Int32 to declare events.
The implicit convention is that a traceable class will include a TraceProvider inner class an Id field of type Guid and fields of type Int32 to declare events .