Skip to content

Commit

Permalink
refactor: update batching extension method to AddBatching
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-sousa-8 committed Sep 20, 2023
1 parent 22a464b commit c07d520
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Expand Up @@ -3,7 +3,7 @@ namespace KafkaFlow.UnitTests.BatchConsume
using System;
using System.Threading.Tasks;
using FluentAssertions;
using KafkaFlow.Middlewares.BatchConsume;
using KafkaFlow.Batching;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;

Expand Down
@@ -1,4 +1,4 @@
namespace KafkaFlow.Middlewares.BatchConsume
namespace KafkaFlow.Batching
{
using System;
using System.Collections.Generic;
Expand Down
@@ -1,4 +1,4 @@
namespace KafkaFlow.Middlewares.BatchConsume
namespace KafkaFlow.Batching
{
using System;
using System.Collections.Generic;
Expand Down
@@ -1,4 +1,4 @@
namespace KafkaFlow.Middlewares.BatchConsume
namespace KafkaFlow.Batching
{
using System;
using System.Collections.Generic;
Expand All @@ -7,7 +7,7 @@ namespace KafkaFlow.Middlewares.BatchConsume
/// <summary>
/// no needed
/// </summary>
public static class BatchConsumeExtensions
public static class BatchingExtensions
{
/// <summary>
/// Accumulates a group of messages to be passed as a batch to the next middleware as just one message
Expand All @@ -16,7 +16,7 @@ public static class BatchConsumeExtensions
/// <param name="batchSize">The maximum size of the batch, when this limit is reached the next middleware will be called</param>
/// <param name="batchTimeout">The maximum time the middleware will wait to call the next middleware</param>
/// <returns></returns>
public static IConsumerMiddlewareConfigurationBuilder BatchConsume(
public static IConsumerMiddlewareConfigurationBuilder AddBatching(
this IConsumerMiddlewareConfigurationBuilder builder,
int batchSize,
TimeSpan batchTimeout)
Expand All @@ -30,7 +30,7 @@ public static class BatchConsumeExtensions
}

/// <summary>
/// Gets the accumulated <see cref="IMessageContext"/> grouped by BatchConsume middleware
/// Gets the accumulated <see cref="IMessageContext"/> grouped by batching middleware
/// </summary>
/// <param name="context">The message context</param>
/// <returns>All the contexts in the batch</returns>
Expand Down

0 comments on commit c07d520

Please sign in to comment.