Click or drag to resize

Cache Constructor (TraceLogger)

Inititialiser that takes a reference to the calling application's trace logger. This ensures that trace output will appear in context with the applications's own log messages, making it easier to debug the application.

Namespace:  ASCOM.Utilities
Assembly:  ASCOM.Cache (in ASCOM.Cache.dll) Version: 3c9121baba46811fe6e53a58a05935662261416d
public Cache(
	TraceLogger CallersLogger


Type: ASCOM.UtilitiesTraceLogger
Reference to the call's trace logger instance.
The initialiser will accept null (Nothing) as a valid reference, this will suppress all cache logging.

Due to COM limitations, this initialiser can only be used by .NET applications. COM applications should use the parameterless constructor and, if required, enable cache tracing through the "Trace Cache" option that can be set through the Chooser or Diagnostics menus. This will cause the cache to create a separate log in the same directory as the application's own log.

See Also