mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-09 17:44:38 +01:00
* wip * hacky fix for overlapping event text in profiler * move IsResumeGameAfterPluginLoad logic to PluginManager * fix some warnings * handle exceptions properly * remove ability to cancel, rename button to "hide" instead * undo Dalamud.Service refactor for now * warnings * add explainer, show which plugins are still loading * add some text if loading takes more than 3 minutes * undo wrong CS merge
25 lines
930 B
C#
25 lines
930 B
C#
namespace Dalamud;
|
|
|
|
/// <summary>
|
|
/// Marker class for service types.
|
|
/// </summary>
|
|
public interface IServiceType
|
|
{
|
|
}
|
|
|
|
/// <summary><see cref="IDisposable"/>, but for <see cref="IServiceType"/>.</summary>
|
|
/// <remarks>Use this to prevent services from accidentally being disposed by plugins or <c>using</c> clauses.</remarks>
|
|
internal interface IInternalDisposableService : IServiceType
|
|
{
|
|
/// <summary>Disposes the service.</summary>
|
|
void DisposeService();
|
|
}
|
|
|
|
/// <summary>An <see cref="IInternalDisposableService"/> which happens to be public and needs to expose
|
|
/// <see cref="IDisposable.Dispose"/>.</summary>
|
|
internal interface IPublicDisposableService : IInternalDisposableService, IDisposable
|
|
{
|
|
/// <summary>Marks that only <see cref="IInternalDisposableService.DisposeService"/> should respond,
|
|
/// while suppressing <see cref="IDisposable.Dispose"/>.</summary>
|
|
void MarkDisposeOnlyFromService();
|
|
}
|