ChannelSubscription
Namespace Mc.Scripting · Kind class (sealed)
public sealed class ChannelSubscription : IDisposable, IPluginResourceA listener on a plugin messaging channel (ChannelRegistry.On). Dispose it to stop listening.
Properties
Section titled “Properties”| Member | Description |
|---|---|
string Channel { get; } |
The channel the subscription listens on. |
bool IsActive { get; } |
Whether the subscription still listens (false after Dispose). |
Channel
Section titled “Channel”public string Channel { get; }The channel the subscription listens on.
IsActive
Section titled “IsActive”public bool IsActive { get; }Whether the subscription still listens (false after Dispose).
Methods
Section titled “Methods”| Member | Description |
|---|---|
void Dispose() |
Stops listening. |
Dispose
Section titled “Dispose”public void Dispose()Stops listening. When it was the last listener of its channel, the engine stops announcing the channel to the clients.