add IDisposable declaration to accompany existing Dispose() method

This commit is contained in:
sbwalker 2024-01-30 13:13:49 -05:00
parent ea04c7d5eb
commit 7fcfffba6f
6 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,7 @@
@using System.ComponentModel
@using Oqtane.Shared
@inject SiteState SiteState
@implements IDisposable
@if (!string.IsNullOrEmpty(_title))
{

View File

@ -4,6 +4,7 @@
@attribute [OqtaneIgnore]
@inject IStringLocalizer<SharedResources> SharedLocalizer
@inject IStringLocalizerFactory LocalizerFactory
@implements IDisposable
<span class="app-moduletitle">
@((MarkupString)title)

View File

@ -1,6 +1,7 @@
@using System.ComponentModel
@namespace Oqtane.UI
@inject SiteState SiteState
@implements IDisposable
@if (ComponentType != null && _visible)
{

View File

@ -13,6 +13,7 @@
@inject ILogService LogService
@inject IJSRuntime JSRuntime
@implements IHandleAfterRender
@implements IDisposable
@if (!string.IsNullOrEmpty(_error))
{

View File

@ -12,7 +12,7 @@ using Oqtane.Shared;
namespace Oqtane.Infrastructure
{
public class EventDistributorHostedService : IHostedService
public class EventDistributorHostedService : IHostedService, IDisposable
{
private readonly IServiceProvider _serviceProvider;
private readonly ISyncManager _syncManager;

View File

@ -1,3 +1,4 @@
using System;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Logging;
@ -25,6 +26,7 @@ namespace Oqtane.Infrastructure
public void Dispose()
{
// nothing to dispose
}
}
}