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 System.ComponentModel
@using Oqtane.Shared @using Oqtane.Shared
@inject SiteState SiteState @inject SiteState SiteState
@implements IDisposable
@if (!string.IsNullOrEmpty(_title)) @if (!string.IsNullOrEmpty(_title))
{ {

View File

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

View File

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

View File

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

View File

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

View File

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