Skip to content

Commit

Permalink
Fix capitalization and formatting for PubSubPublisherState (#8594)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReubenBond committed Aug 30, 2023
1 parent cb70607 commit 895d70e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Orleans.Streaming/PubSub/PubSubPublisherState.cs
Expand Up @@ -10,16 +10,17 @@ namespace Orleans.Streams
internal sealed class PubSubPublisherState : IEquatable<PubSubPublisherState>
{
// IMPORTANT!!!!!
// These fields have to be public non-readonly for JSonSerialization to work!
// These fields have to be public non-readonly for JsonSerialization to work!
// Implement ISerializable if changing any of them to readonly
[JsonProperty]
[Id(0)]
public QualifiedStreamId Stream;

[JsonProperty]
[Id(1)]
public GrainId Producer; // the field needs to be of a public type, otherwise we will not generate an Orleans serializer for that class.

// This constructor has to be public for JSonSerialization to work!
// This constructor has to be public for JsonSerialization to work!
// Implement ISerializable if changing it to non-public
public PubSubPublisherState(QualifiedStreamId streamId, GrainId streamProducer)
{
Expand Down

0 comments on commit 895d70e

Please sign in to comment.