Skip to content

Commit

Permalink
Merge pull request #7 from CloudPhoenix/20240627
Browse files Browse the repository at this point in the history
Make LogFlake class public
  • Loading branch information
dedo1911 authored Jun 27, 2024
2 parents a4a0907 + 13acbf0 commit ade1af7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions LogFlake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

namespace NLogFlake;

internal class LogFlake : ILogFlake
public class LogFlake : ILogFlake
{
private Uri Server { get; set; }
private string? _hostname = Environment.MachineName;
Expand All @@ -26,11 +26,11 @@ internal class LogFlake : ILogFlake
internal int FailedPostRetries { get; set; } = 3;
internal bool EnableCompression { get; set; } = true;

internal void SetHostname() => SetHostname(null);
public void SetHostname() => SetHostname(null);

internal string? GetHostname() => _hostname;
public string? GetHostname() => _hostname;

internal void SetHostname(string? hostname) => _hostname = string.IsNullOrWhiteSpace(hostname) ? null : hostname;
public void SetHostname(string? hostname) => _hostname = string.IsNullOrWhiteSpace(hostname) ? null : hostname;

public LogFlake(IOptions<LogFlakeOptions> logFlakeOptions, IHttpClientFactory httpClientFactory)

Check failure on line 35 in LogFlake.cs

View workflow job for this annotation

GitHub Actions / build

Inconsistent accessibility: parameter type 'IOptions<LogFlakeOptions>' is less accessible than method 'LogFlake.LogFlake(IOptions<LogFlakeOptions>, IHttpClientFactory)'

Check failure on line 35 in LogFlake.cs

View workflow job for this annotation

GitHub Actions / build

Inconsistent accessibility: parameter type 'IOptions<LogFlakeOptions>' is less accessible than method 'LogFlake.LogFlake(IOptions<LogFlakeOptions>, IHttpClientFactory)'
{
Expand Down
2 changes: 1 addition & 1 deletion LogFlake.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageId>LogFlake.Client.NetStandard</PackageId>
<Version>1.5.5</Version>
<Version>1.5.6</Version>
<Authors>CloudPhoenix Srl</Authors>
<Company>CloudPhoenix Srl</Company>
<TargetFramework>netstandard2.0</TargetFramework>
Expand Down

0 comments on commit ade1af7

Please sign in to comment.