Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

Commit df0de9b

Browse files
committed
add original license for Batch method
1 parent 4c8e9f7 commit df0de9b

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/InfluxDB.Collector/Util/EnumerableExtensions.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,23 @@ namespace InfluxDB.Collector.Util
55
{
66
internal static class EnumerableExtensions
77
{
8-
// from https://github.com/morelinq/MoreLINQ/blob/master/MoreLinq/Batch.cs
8+
// Copied from https://github.com/morelinq/MoreLINQ/blob/master/MoreLinq/Batch.cs
9+
// Original license below
10+
//
11+
// MoreLINQ - Extensions to LINQ to Objects
12+
// Copyright (c) 2009 Atif Aziz. All rights reserved.
13+
//
14+
// Licensed under the Apache License, Version 2.0 (the "License");
15+
// you may not use this file except in compliance with the License.
16+
// You may obtain a copy of the License at
17+
//
18+
// http://www.apache.org/licenses/LICENSE-2.0
19+
//
20+
// Unless required by applicable law or agreed to in writing, software
21+
// distributed under the License is distributed on an "AS IS" BASIS,
22+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+
// See the License for the specific language governing permissions and
24+
// limitations under the License.
925
public static IEnumerable<IEnumerable<TSource>> Batch<TSource>(this IEnumerable<TSource> source, int size)
1026
{
1127
TSource[] bucket = null;

0 commit comments

Comments
 (0)