IdeaBlade DevForce 2010 Help Reference
TracePublisher Class
Members  See Also  Send Feedback
IdeaBlade.Core Assembly > IdeaBlade.Core Namespace : TracePublisher Class



Publishes debugging and tracing messages generated by DevForce applications.

Object Model

TracePublisher ClassTracePublisher Class

Syntax

Visual Basic (Declaration) 
<ServiceBehaviorAttribute(ConfigurationName="TracePublisher", 
   ConcurrencyMode=ConcurrencyMode.Multiple, 
   InstanceContextMode=InstanceContextMode.Single)>
Public Class TracePublisher 
   Inherits System.MarshalByRefObject
   Implements System.IDisposable 
Visual Basic (Usage)Copy Code
Dim instance As TracePublisher
C# 
[ServiceBehaviorAttribute(ConfigurationName="TracePublisher", 
   ConcurrencyMode=ConcurrencyMode.Multiple, 
   InstanceContextMode=InstanceContextMode.Single)]
public class TracePublisher : System.MarshalByRefObject, System.IDisposable  
C++/CLI 
[ServiceBehaviorAttribute(ConfigurationName="TracePublisher", 
   ConcurrencyMode=ConcurrencyMode.Multiple, 
   InstanceContextMode=InstanceContextMode.Single)]
public ref class TracePublisher : public 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.