Esempio n. 1
0
		/// <summary>
		/// Creates an additional logger on demand for a subsection of the application.
		/// </summary>
		/// <param name="type">A type whose full name that will be included in the log file.</param>
		/// <returns>The <see cref="ILog"/> instance created with the given type name.</returns>
		internal static ILog Create(Type type) {
			Requires.NotNull(type, "type");

			return Create(type.FullName);
		}
Esempio n. 2
0
 internal static void NotNullSubtype <T>(Type type, string parameterName)
 {
     Requires.NotNull(type, parameterName);
     Requires.That(typeof(T).IsAssignableFrom(type), parameterName, MessagingStrings.UnexpectedType, typeof(T).FullName, type.FullName);
 }