Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose some internal properties as public #2127

Merged
merged 1 commit into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Proto.Cluster/Cluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ public Cluster(ActorSystem system, ClusterConfig config)
/// </summary>
public MemberList MemberList { get; private set; } = null!;

internal IIdentityLookup IdentityLookup { get; set; } = null!;
public IIdentityLookup IdentityLookup { get; set; } = null!;

internal IClusterProvider Provider { get; set; } = null!;
public PidCache PidCache { get; }

internal PidCache PidCache { get; }
internal IClusterProvider Provider { get; set; } = null!;

private void SubscribeToTopologyEvents() =>
System.EventStream.Subscribe<ClusterTopology>(e =>
Expand Down
4 changes: 2 additions & 2 deletions src/Proto.Cluster/Messages/Messages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Proto.Cluster;

public sealed partial class ClusterIdentity : ICustomDiagnosticMessage
{
internal PID? CachedPid { get; set; }
public PID? CachedPid { get; set; }

public string ToDiagnosticString() => $"{Kind}/{Identity}";

Expand Down Expand Up @@ -143,4 +143,4 @@ public static uint TopologyHash(IEnumerable<Member> members)
public partial class MemberHeartbeat : IRemotePriorityMessage
{

}
}
4 changes: 2 additions & 2 deletions src/Proto.Cluster/PidCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

namespace Proto.Cluster;

internal class PidCache
public class PidCache
{
private readonly ICollection<KeyValuePair<ClusterIdentity, PID>> _cacheCollection;
private readonly ConcurrentDictionary<ClusterIdentity, PID> _cacheDict;
Expand Down Expand Up @@ -168,4 +168,4 @@ internal int RemoveByPredicate(Func<KeyValuePair<ClusterIdentity, PID>, bool> pr

return removed;
}
}
}
Loading