Example #1
0
        /// <summary>
        /// Return the manifest of a provider for the given type.
        /// </summary>
        /// <param name="type">The provider type.</param>
        /// <returns>The XML manifest content.</returns>
        public static string GenerateManifest(Type type)
        {
            EventSource eventSource = EventSourceImplementer.GetEventSource(type);

            return(EventSource.GenerateManifest(eventSource.GetType(), Assembly.GetAssembly(type).Location));
        }
Example #2
0
        /// <summary>
        /// Return the GUID of a provider.
        /// </summary>
        /// <param name="type">The provider type.</param>
        /// <returns>The GUID representing the name.</returns>
        public static Guid GetGuid(Type type)
        {
            EventSource eventSource = EventSourceImplementer.GetEventSource(type);

            return(eventSource.Guid);
        }