Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
marcschier committed Oct 14, 2024
1 parent eb96eaa commit e528b0c
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ namespace Azure.IIoT.OpcUa.Publisher.Storage
using System.Threading;

/// <summary>
/// Utilities provider for published nodes file.
/// Provider for published nodes file.
/// </summary>
public sealed class PublishedNodesProvider : IStorageProvider, IDisposable
{
/// <inheritdoc/>
public event EventHandler<FileSystemEventArgs>? Changed;

/// <summary>
/// Provider of utilities for published nodes file.
/// Provider of storage for published nodes file.
/// </summary>
/// <param name="factory">File provider factory</param>
/// <param name="options">Publisher configuration with location
Expand All @@ -35,6 +35,8 @@ public PublishedNodesProvider(IFileProviderFactory factory,
IOptions<PublisherOptions> options,
ILogger<PublishedNodesProvider> logger)
{
// TODO: Use IFileProvider and IStorageProvider going forward

_logger = logger ?? throw new ArgumentNullException(nameof(logger));

_fileMode = options.Value.PublishedNodesFile == null ||
Expand Down Expand Up @@ -91,7 +93,8 @@ public string ReadContent()
}
catch (Exception e)
{
_logger.LogDebug(e, "Failed to read content of published nodes file from \"{Path}\"",
_logger.LogDebug(e,
"Failed to read content of published nodes file from \"{Path}\"",
_fileName);
throw;
}
Expand Down

0 comments on commit e528b0c

Please sign in to comment.