[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

PublishManager is used by applcations to publish events.
             class WorkerClass
             {
                 private static PublishManager pubMgr;
            
                 public WorkerClass()
                 {
                     pubMgr = new PublishManager(10000);
                 }
            
                 public void DoWork()
                 {
                     ...
            
                     WebpageEvent localEvent = new WebpageEvent();
                     localEvent.EventName = @"Test Event";
            
                     ...
            
                     pubMgr.Publish(localEvent.Serialize());
            
                     ...
                 }
             }
             

Namespace: Microsoft.WebSolutionsPlatform.Event.PubSubManager
Assembly: PubSubMgr (PubSubMgr)

Syntax

Visual Basic (Declaration)
Public Class PublishManager _
	Implements IDisposable
C#
public class PublishManager : IDisposable
C++
public ref class PublishManager : IDisposable

Methods

IconTypeDescription
Dispose()
Dispose the object
Dispose(Boolean)
Dispose the object
Equals(Object)
Determines whether the specified Object is equal to the current Object.
Finalize()
Destructor
GetHashCode()
Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.
GetType()
Gets the Type of the current instance.
MemberwiseClone()
Creates a shallow copy of the current Object.
Publish(Byte[]())
Publishes an event to the event service
ToString()
Returns a String that represents the current Object.

Constructors

IconTypeDescription
PublishManagerNew()
Constructor
PublishManagerNew(UInt32)
Constructor

Properties

IconTypeDescription
QueueSize
Size in bytes of the SharedQueue
RetryAttempts
Number of times to retry a failed enqueue request before returning a fail to the application
RetryPause
Number of milliseconds to wait before retrying an enqueue request
Timeout
Timeout for publishing events

Inheritance Hierarchy

System.Object
  Microsoft.WebSolutionsPlatform.Event.PubSubManager.PublishManager