Skip to content

Commit

Permalink
Renamed Syncronised to Syncronized (ChilliCream#4513)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib authored Dec 1, 2021
1 parent b557ebf commit 33dc3f4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/HotChocolate/Core/src/Abstractions/ServiceKind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public enum ServiceKind
/// Example for such service is for instance the Entity
/// Framework DbContext when scoped on the request.
/// </summary>
Synchronised,
Synchronized,

/// <summary>
/// A service is rented for each resolver execution.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static void ApplyConfiguration(
case ServiceKind.Default:
return;

case ServiceKind.Synchronised:
case ServiceKind.Synchronized:
descriptor.Extend().Definition.IsParallelExecutable = false;
break;

Expand Down Expand Up @@ -91,7 +91,7 @@ public static Expression Build(
throw new ArgumentNullException(nameof(context));
}

return serviceKind is ServiceKind.Default or ServiceKind.Synchronised
return serviceKind is ServiceKind.Default or ServiceKind.Synchronized
? BuildDefaultService(parameter, context)
: BuildLocalService(parameter, context);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public async Task AddSynchronizedService()
.AddSingleton<SayHelloService>()
.AddGraphQL()
.AddQueryType<QueryWellKnownService>()
.RegisterService<SayHelloService>(ServiceKind.Synchronised)
.RegisterService<SayHelloService>(ServiceKind.Synchronized)
.ModifyRequestOptions(o => o.IncludeExceptionDetails = true)
.BuildRequestExecutorAsync();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public string SayHello([Service(ServiceKind.Pooled)] SayHelloService service)

public class QuerySynchronizedService
{
public string SayHello([Service(ServiceKind.Synchronised)] SayHelloService service)
public string SayHello([Service(ServiceKind.Synchronized)] SayHelloService service)
=> service.SayHello();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public DbContextParameterExpressionBuilder(DbContextKind kind)
{
DbContextKind.Pooled => ServiceKind.Pooled,
DbContextKind.Resolver => ServiceKind.Resolver,
_ => ServiceKind.Synchronised
_ => ServiceKind.Synchronized
};
}

Expand All @@ -46,7 +46,7 @@ public void ApplyConfiguration(ParameterInfo parameter, ObjectFieldDescriptor de
UseDbContext<TDbContext>(descriptor.Extend().Definition);
break;

case ServiceKind.Synchronised:
case ServiceKind.Synchronized:
ServiceExpressionHelper.ApplyConfiguration(parameter, descriptor, _kind);
break;

Expand Down

0 comments on commit 33dc3f4

Please sign in to comment.