fix disposes and add TextureWrapIconSource

This commit is contained in:
Soreepeong 2024-02-26 04:16:36 +09:00
parent 9644dd9922
commit 42b6f8fd4b
10 changed files with 187 additions and 81 deletions

View file

@ -11,6 +11,12 @@ public interface INotificationManager
/// Adds a notification.
/// </summary>
/// <param name="notification">The new notification.</param>
/// <param name="disposeNotification">
/// Dispose <paramref name="notification"/> when this function returns, even if the function throws an exception.
/// Set to <c>false</c> to reuse <paramref name="notification"/> for multiple calls to this function, in which case,
/// you should call <see cref="IDisposable.Dispose"/> on the value supplied to <paramref name="notification"/> at a
/// later time.
/// </param>
/// <returns>The added notification.</returns>
IActiveNotification AddNotification(Notification notification);
IActiveNotification AddNotification(Notification notification, bool disposeNotification = true);
}