-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
149 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
namespace Common.Kafka; | ||
using System.Threading.Tasks; | ||
|
||
public interface IKafkaHandler<Tk, Tv> | ||
public interface IKafkaHandler<TK, TV> | ||
{ | ||
/// <summary> | ||
/// Provide mechanism to handle the consumer message from Kafka | ||
/// </summary> | ||
/// <param name="key">Indicates the message's key for Kafka Topic</param> | ||
/// <param name="value">Indicates the message's value for Kafka Topic</param> | ||
/// <returns></returns> | ||
Task<Task> HandleAsync(string consumerName, Tk key, Tv value); | ||
Task<Task> HandleAsync(string consumerName, TK key, TV value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,35 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace jumwebapi.Extensions; | ||
|
||
|
||
/// <summary> | ||
/// AuthenticationException class, provides a way to handle exceptions that occur when validating authentication. | ||
/// </summary> | ||
[Serializable] | ||
public class AuthenticationException : Exception | ||
{ | ||
#region Constructors | ||
/// <summary> | ||
/// AuthenticationException class, provides a way to handle exceptions that occur when validating authentication. | ||
/// Creates a new instance of a AuthenticationException object. | ||
/// </summary> | ||
[Serializable] | ||
public class AuthenticationException : Exception | ||
{ | ||
#region Constructors | ||
/// <summary> | ||
/// Creates a new instance of a AuthenticationException object. | ||
/// </summary> | ||
/// <returns></returns> | ||
public AuthenticationException() { } | ||
/// <returns></returns> | ||
public AuthenticationException() { } | ||
|
||
/// <summary> | ||
/// Creates a new instance of a AuthenticationException object, initializes it with the specified arguments. | ||
/// </summary> | ||
/// <param name="message"></param> | ||
/// <returns></returns> | ||
public AuthenticationException(string message) : base(message) { } | ||
/// <summary> | ||
/// Creates a new instance of a AuthenticationException object, initializes it with the specified arguments. | ||
/// </summary> | ||
/// <param name="message"></param> | ||
/// <returns></returns> | ||
public AuthenticationException(string message) : base(message) { } | ||
|
||
/// <summary> | ||
/// Creates a new instance of a AuthenticationException object, initializes it with the specified arguments. | ||
/// /// </summary> | ||
/// <param name="message"></param> | ||
/// <param name="innerException"></param> | ||
/// <returns></returns> | ||
public AuthenticationException(string message, Exception innerException) : base(message, innerException) { } | ||
|
||
/// <summary> | ||
/// Creates a new instance of a AuthenticationException object, initializes it with the specified arguments. | ||
/// /// </summary> | ||
/// <param name="message"></param> | ||
/// <param name="innerException"></param> | ||
/// <returns></returns> | ||
public AuthenticationException(string message, Exception innerException) : base(message, innerException) { } | ||
|
||
/// <summary> | ||
/// Creates a new instance of a AuthenticationException object, initializes it with the specified arguments. | ||
/// /// </summary> | ||
/// <param name="info"></param> | ||
/// <param name="context"></param> | ||
/// <returns></returns> | ||
protected AuthenticationException(SerializationInfo info, StreamingContext context) : base(info, context) { } | ||
#endregion | ||
} | ||
#endregion | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.