DevForce Help Reference
TracePublisher Class
Members 


Publishes debugging and tracing messages generated by DevForce applications.
Object Model
TracePublisher ClassTracePublisher Class
Syntax
'Declaration
 
<ServiceBehaviorAttribute(ConfigurationName="TracePublisher", 
   ConcurrencyMode=ConcurrencyMode.Multiple, 
   InstanceContextMode=InstanceContextMode.Single)>
Public Class TracePublisher 
   Inherits System.MarshalByRefObject
   Implements System.IDisposable 
'Usage
 
Dim instance As TracePublisher
[ServiceBehavior(ConfigurationName="TracePublisher", 
   ConcurrencyMode=ConcurrencyMode.Multiple, 
   InstanceContextMode=InstanceContextMode.Single)]
public class TracePublisher : System.MarshalByRefObject, System.IDisposable  
Remarks
The TracePublisher is used internally within DevForce applications to publish all trace and debug messages generated by calls to TraceFns.WriteLine and DebugFns.WriteLine. Internal subscribers to this publisher are the logger which allows the log file to be written, and the Trace Viewer Utility.

DevForce applications generally do not work directly with the TracePublisher, except in advanced implementations where a custom subscriber is needed (see TraceSubscriber for more information.) You may, however, find you need to override some of the defaults used by the TracePublisher, most notably the default port. You override defaults using the logging element in the IdeaBlade configuration file.

The TracePublisher uses Windows Communication Foundation when hosted as a service for remote subscribers. By default, the communication channel uses NetTcpBinding, no security, and turns off reliable sessions. To override these defaults you must create an entry for this service in the serviceModel section of the configuration file.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      IdeaBlade.Core.TracePublisher

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TracePublisher Members
IdeaBlade.Core Namespace

Send Feedback