Click or drag to resize

InfoController class

Singleton, dispatches messages taking into account of their severity. Manages a delegate list in which viewers can enter themselves which can then be used when a new message is received from InfoController.
Inheritance hierarchy
SystemObject
  NetEti.ApplicationControlInfoController

Namespace: NetEti.ApplicationControl
Assembly: NetEti.InfoController (in NetEti.InfoController.dll) Version: 1.0.0+b865061c8026804ece26684b7dc3403284234a08
Syntax
public class InfoController : InfoController,
	 
	IInfoPublisher, IFlushable, IShowable, IInfoSource, IDisposable

The InfoController Type exposes the following members.

Methods
 NameDescription of the
Public MethodDispose Public method for cleaning up.
Protected MethodDispose(Boolean) This can be tidied up if necessary.
Public MethodDisposeAll Disposed all viewers.
Protected MethodFinalise Finaliser: is called by the GarbageCollector.
(Overwrites ObjectFinalise)
Public MethodFlush Flushes all flushable viewers/loggers.
Public MethodStatic MemberFlushAll All InfoPublishers are channelled via this.
Public MethodStatic MemberGetInfoController Returns the static property of the nestet class NestedInstance (as IInfoController), which in turn calls the private constructor if no instance exists yet.
Public MethodStatic MemberGetInfoPublisher Returns the static property of the nestet class NestedInstance (as IInfoPublisher), which in turn calls the private constructor if no instance exists yet.
Public MethodStatic MemberGetInfoSource Returns the static property of the nestet class NestedInstance (as IInfoSource), which in turn calls the private constructor if no instance exists yet.
Public MethodPublish(Object) This is used to distribute a new message of type InfoType.Info with sender null.
Public MethodPublish(Object, Object) A new message of type InfoType.Info is distributed via this.
Public MethodPublish(Object, Object, InfoType) A new message is spread via this.
Public MethodRegisterInfoReceiver(IInfoViewer, InfoType) An interested viewer can use this to register in the list of viewers to be informative viewer.
Public MethodRegisterInfoReceiver(IInfoViewer, Type, InfoType) An interested viewer can use this to register in the list of viewers to be informative viewer.
Public MethodStatic MemberSay This is used to spread a message.
Public MethodShow All logs are output here.
Public MethodUnregisterInfoReceiver A registered viewer can use this to log out again.
Back to the top
Remarks
Author: Erik Nagel, NetEti 08/03/2012 Erik Nagel: created. 21/04/2013 Erik Nagel: Processing via array copy in informInfoReceivers. 02.05.2014 Erik Nagel: Say implemented; Call of Global.DynamicIs(instance, typeof(T)) changed to typeof(T).IsAssignableFrom(instance.GetType()). 02.05.2019 Erik Nagel: IDisposable implemented. 06.11.2023 Erik Nagel: IShowable implemented.
See also