public abstract class PayloadSharedEventHubBase<TEventArgs> : IPayloadSharedEventNotifier,
IPayloadSharedEventSubscriber, IAsyncDisposable
where TEventArgs : class, new(), IPayloadSharedEventArgs
Public MustInherit Class PayloadSharedEventHubBase(Of TEventArgs As {Class, New, IPayloadSharedEventArgs})
Implements IPayloadSharedEventNotifier, IPayloadSharedEventSubscriber, IAsyncDisposablegeneric<typename TEventArgs>
where TEventArgs : ref class, gcnew(), IPayloadSharedEventArgs
public ref class PayloadSharedEventHubBase abstract : IPayloadSharedEventNotifier,
IPayloadSharedEventSubscriber, IAsyncDisposable[<AbstractClassAttribute>]
type PayloadSharedEventHubBase<'TEventArgs when 'TEventArgs : not struct, new() and IPayloadSharedEventArgs> =
class
interface IPayloadSharedEventNotifier
interface IPayloadSharedEventSubscriber
interface IAsyncDisposable
end| PayloadSharedEventHubBaseTEventArgs | Создаёт экземпляр класса с указанием его зависимостей. |
| IsDisposed | Признак того, что ресурсы объекта были освобождены. |
| DisposeAsync | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. |
| Equals | Determines whether the specified object is equal to the current object. (Унаследован от Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Унаследован от Object) |
| GetHashCode | Serves as the default hash function. (Унаследован от Object) |
| GetType | Gets the Type of the current instance. (Унаследован от Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Унаследован от Object) |
| NotifyAsyncTPayload | Уведомляет подписчиков о наступлении глобального события. |
| SubscribeAsyncTPayload | Подписывается на обработку глобального события. |
| ToString | Returns a string that represents the current object. (Унаследован от Object) |
| UnsubscribeTPayload | Отписывается от обработки глобального события. Если обработчик не подписан, то метод не выполняет действий. |
| UnsubscribeAll | Выполняет отписку от всех событий. |