Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved DataLoader Code to GreenDonut #4015

Merged
merged 1 commit into from
Jul 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System;
using System.Threading.Tasks;

namespace HotChocolate.Fetching
namespace GreenDonut
{
/// <summary>
/// Defines a batch dispatcher that immediately dispatches batch jobs.
/// </summary>
public class AutoBatchScheduler : IAutoBatchDispatcher
public class AutoBatchScheduler : IBatchScheduler
{
/// <summary>
/// Schedules a new job to the dispatcher that is immediately executed.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using GreenDonut;

#nullable enable

namespace HotChocolate.Fetching
namespace GreenDonut
{
public abstract class BatchDataLoader<TKey, TValue>
: DataLoaderBase<TKey, TValue>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using GreenDonut;

#nullable enable

namespace HotChocolate.Fetching
namespace GreenDonut
{
public abstract class CacheDataLoader<TKey, TValue>
: DataLoaderBase<TKey, TValue>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using GreenDonut;

#nullable enable

namespace HotChocolate.Fetching
namespace GreenDonut
{
public abstract class GroupedDataLoader<TKey, TValue>
: DataLoaderBase<TKey, TValue[]>
Expand Down
1 change: 1 addition & 0 deletions src/HotChocolate/Core/src/Fetching/FetchCacheDataLoader.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Threading;
using System.Threading.Tasks;
using GreenDonut;

#nullable enable

Expand Down
9 changes: 0 additions & 9 deletions src/HotChocolate/Core/src/Fetching/IAutoBatchDispatcher.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ namespace HotChocolate.Fetching
{
public class RegisterDataLoaderException : GraphQLException
{
public RegisterDataLoaderException(string message)
: base(message)
public RegisterDataLoaderException(string message) : base(message)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Threading.Tasks;
using GreenDonut;
using HotChocolate.Fetching;
using Xunit;

Expand Down
1 change: 0 additions & 1 deletion src/HotChocolate/Core/test/StarWars/Types/DroidType.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using HotChocolate.Types;
using HotChocolate.Types.Relay;
using HotChocolate.StarWars.Models;
using HotChocolate.StarWars.Resolvers;

Expand Down