This is an automated email from the ASF dual-hosted git repository.

blankensteiner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-dotpulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 8b2ec68  Removing redundant access modifier on interfaces
8b2ec68 is described below

commit 8b2ec68253596ec0069e678643e7c1faadc98604
Author: Daniel Blankensteiner <[email protected]>
AuthorDate: Tue Jan 28 09:41:32 2025 +0100

    Removing redundant access modifier on interfaces
---
 src/DotPulsar/Abstractions/IConsumer.cs        |  6 +++---
 src/DotPulsar/Abstractions/IConsumerBuilder.cs |  2 +-
 src/DotPulsar/Abstractions/IMessage.cs         | 10 +++++-----
 src/DotPulsar/Abstractions/IMessageOfT.cs      |  4 ++--
 src/DotPulsar/Abstractions/IProducer.cs        |  2 +-
 src/DotPulsar/Abstractions/IPulsarClient.cs    |  2 +-
 src/DotPulsar/Abstractions/IReader.cs          |  2 +-
 src/DotPulsar/Abstractions/ISchema.cs          |  8 ++++----
 8 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/src/DotPulsar/Abstractions/IConsumer.cs 
b/src/DotPulsar/Abstractions/IConsumer.cs
index 84ea708..cdddb08 100644
--- a/src/DotPulsar/Abstractions/IConsumer.cs
+++ b/src/DotPulsar/Abstractions/IConsumer.cs
@@ -37,17 +37,17 @@ public interface IConsumer : IGetLastMessageIds, ISeek, 
IStateHolder<ConsumerSta
     /// <summary>
     /// The consumer's service url.
     /// </summary>
-    public Uri ServiceUrl { get; }
+    Uri ServiceUrl { get; }
 
     /// <summary>
     /// The consumer's subscription name.
     /// </summary>
-    public string SubscriptionName { get; }
+    string SubscriptionName { get; }
 
     /// <summary>
     /// The consumer's subscription type.
     /// </summary>
-    public SubscriptionType SubscriptionType { get; }
+    SubscriptionType SubscriptionType { get; }
 
     /// <summary>
     /// The consumer's topic.
diff --git a/src/DotPulsar/Abstractions/IConsumerBuilder.cs 
b/src/DotPulsar/Abstractions/IConsumerBuilder.cs
index d28c0f5..0cd5dc5 100644
--- a/src/DotPulsar/Abstractions/IConsumerBuilder.cs
+++ b/src/DotPulsar/Abstractions/IConsumerBuilder.cs
@@ -62,7 +62,7 @@ public interface IConsumerBuilder<TMessage>
     /// <summary>
     /// Add/Set a property key/value on the subscription. This is optional.
     /// </summary>
-    public IConsumerBuilder<TMessage> SubscriptionProperty(string key, string 
value);
+    IConsumerBuilder<TMessage> SubscriptionProperty(string key, string value);
 
     /// <summary>
     /// Set the subscription type for this consumer. The default is 
'Exclusive'.
diff --git a/src/DotPulsar/Abstractions/IMessage.cs 
b/src/DotPulsar/Abstractions/IMessage.cs
index 876ac57..3cc3f0c 100644
--- a/src/DotPulsar/Abstractions/IMessage.cs
+++ b/src/DotPulsar/Abstractions/IMessage.cs
@@ -64,12 +64,12 @@ public interface IMessage
     /// <summary>
     /// The event time of the message as an UTC DateTime.
     /// </summary>
-    public DateTime EventTimeAsDateTime { get; }
+    DateTime EventTimeAsDateTime { get; }
 
     /// <summary>
     /// The event time of the message as a DateTimeOffset with an offset of 0.
     /// </summary>
-    public DateTimeOffset EventTimeAsDateTimeOffset { get; }
+    DateTimeOffset EventTimeAsDateTimeOffset { get; }
 
     /// <summary>
     /// Check whether the key been base64 encoded.
@@ -109,15 +109,15 @@ public interface IMessage
     /// <summary>
     /// The publish time of the message as an UTC DateTime.
     /// </summary>
-    public DateTime PublishTimeAsDateTime { get; }
+    DateTime PublishTimeAsDateTime { get; }
 
     /// <summary>
     /// The publish time of the message as a DateTimeOffset with an offset of 
0.
     /// </summary>
-    public DateTimeOffset PublishTimeAsDateTimeOffset { get; }
+    DateTimeOffset PublishTimeAsDateTimeOffset { get; }
 
     /// <summary>
     /// The properties of the message.
     /// </summary>
-    public IReadOnlyDictionary<string, string> Properties { get; }
+    IReadOnlyDictionary<string, string> Properties { get; }
 }
diff --git a/src/DotPulsar/Abstractions/IMessageOfT.cs 
b/src/DotPulsar/Abstractions/IMessageOfT.cs
index 8d4303e..2fbf18d 100644
--- a/src/DotPulsar/Abstractions/IMessageOfT.cs
+++ b/src/DotPulsar/Abstractions/IMessageOfT.cs
@@ -1,4 +1,4 @@
-/*
+/*
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -22,5 +22,5 @@ public interface IMessage<TValue> : IMessage
     /// <summary>
     /// The value of the message.
     /// </summary>
-    public TValue Value();
+    TValue Value();
 }
diff --git a/src/DotPulsar/Abstractions/IProducer.cs 
b/src/DotPulsar/Abstractions/IProducer.cs
index 0f5d10f..7f00844 100644
--- a/src/DotPulsar/Abstractions/IProducer.cs
+++ b/src/DotPulsar/Abstractions/IProducer.cs
@@ -22,7 +22,7 @@ public interface IProducer : IStateHolder<ProducerState>, 
IAsyncDisposable
     /// <summary>
     /// The producer's service url.
     /// </summary>
-    public Uri ServiceUrl { get; }
+    Uri ServiceUrl { get; }
 
     /// <summary>
     /// The producer's topic.
diff --git a/src/DotPulsar/Abstractions/IPulsarClient.cs 
b/src/DotPulsar/Abstractions/IPulsarClient.cs
index 66ab630..1e32fe3 100644
--- a/src/DotPulsar/Abstractions/IPulsarClient.cs
+++ b/src/DotPulsar/Abstractions/IPulsarClient.cs
@@ -37,5 +37,5 @@ public interface IPulsarClient : IAsyncDisposable
     /// <summary>
     /// The client's service url.
     /// </summary>
-    public Uri ServiceUrl { get; }
+    Uri ServiceUrl { get; }
 }
diff --git a/src/DotPulsar/Abstractions/IReader.cs 
b/src/DotPulsar/Abstractions/IReader.cs
index 931b014..d1d7e65 100644
--- a/src/DotPulsar/Abstractions/IReader.cs
+++ b/src/DotPulsar/Abstractions/IReader.cs
@@ -22,7 +22,7 @@ public interface IReader : IGetLastMessageIds, ISeek, 
IStateHolder<ReaderState>,
     /// <summary>
     /// The reader's service url.
     /// </summary>
-    public Uri ServiceUrl { get; }
+    Uri ServiceUrl { get; }
 
     /// <summary>
     /// The reader's topic.
diff --git a/src/DotPulsar/Abstractions/ISchema.cs 
b/src/DotPulsar/Abstractions/ISchema.cs
index 0fda8a4..5fd6a60 100644
--- a/src/DotPulsar/Abstractions/ISchema.cs
+++ b/src/DotPulsar/Abstractions/ISchema.cs
@@ -1,4 +1,4 @@
-/*
+/*
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
@@ -24,15 +24,15 @@ public interface ISchema<T>
     /// <summary>
     /// Decode the raw bytes.
     /// </summary>
-    public T Decode(ReadOnlySequence<byte> bytes, byte[]? schemaVersion = 
null);
+    T Decode(ReadOnlySequence<byte> bytes, byte[]? schemaVersion = null);
 
     /// <summary>
     /// Encode the message.
     /// </summary>
-    public ReadOnlySequence<byte> Encode(T message);
+    ReadOnlySequence<byte> Encode(T message);
 
     /// <summary>
     /// The schema info.
     /// </summary>
-    public SchemaInfo SchemaInfo { get; }
+    SchemaInfo SchemaInfo { get; }
 }

Reply via email to