Udostępnij za pośrednictwem


MessageBus Class

.NET Framework 4

Inheritance Hierarchy

System.Object
  Microsoft.AspNet.SignalR.Messaging.MessageBus
    Microsoft.AspNet.SignalR.Messaging.ScaleoutMessageBus

Namespace:  Microsoft.AspNet.SignalR.Messaging
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Public Class MessageBus _
    Implements IMessageBus, IDisposable
'Usage
Dim instance As MessageBus
public class MessageBus : IMessageBus, IDisposable
public ref class MessageBus : IMessageBus, 
    IDisposable
type MessageBus =  
    class 
        interface IMessageBus 
        interface IDisposable 
    end
public class MessageBus implements IMessageBus, IDisposable

The MessageBus type exposes the following members.

Constructors

  Name Description
Public method MessageBus(IDependencyResolver)
Public method MessageBus(IStringMinifier, ITraceManager, IPerformanceCounterManager, IConfigurationManager, Int32)

Top

Properties

  Name Description
Public property AllocatedWorkers
Public property BusyWorkers
Protected property Counters
Protected property Topics

Top

Methods

  Name Description
Protected method CreateSubscription
Protected method CreateTopic Creates a topic for the specified key.
Public method Dispose()
Protected method Dispose(Boolean)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Publish Publishes a new message to the specified event on the bus.
Protected method Save
Protected method ScheduleEvent
Public method Subscribe
Public method ToString (Inherited from Object.)

Top

Extension Methods

  Name Description
Public Extension Method Publish (Defined by MessageBusExtensions.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.AspNet.SignalR.Messaging Namespace