Skip to content

Commit

Permalink
fix: removed unused services
Browse files Browse the repository at this point in the history
  • Loading branch information
ksavosteev committed Dec 24, 2024
1 parent ff96150 commit a4d120a
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 125 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public static IApplicationBuilder UseSchemaGraphQL<TSchema>(this IApplicationBui
KeepAliveTimeout = TimeSpan.FromSeconds(10), // pass the desired keep-alive timeout
KeepAliveMode = KeepAliveMode.Interval,
}
// can set supported sub-protocols to only include desired protocols with options.WebSockets.SupportedWebSocketSubProtocols = ["graphql-ws"];
});

if (schemaIntrospectionEnabled)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ private static IEnumerable<string> GetAllTreeNodesPaths(this ASTNode node, IReso
}
}

private static IEnumerable<ASTNode> GetCombinedChildrenNodes(ASTNode node, IResolveFieldContext context)
private static List<ASTNode> GetCombinedChildrenNodes(ASTNode node, IResolveFieldContext context)
{
var combinedNodes = new List<ASTNode>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public virtual ValueTask<INodeVisitor> ValidateAsync(ValidationContext context)

if (contentType == "application/json" ||
contentType == "application/graphql" ||
(contentType == null && _httpContextAccessor?.HttpContext?.WebSockets?.IsWebSocketRequest == true))
(contentType == null && _httpContextAccessor.HttpContext?.WebSockets?.IsWebSocketRequest == true))
{
return default;
}
Expand Down
28 changes: 0 additions & 28 deletions src/VirtoCommerce.Xapi.Core/Services/IExternalFieldProvider.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ public static IServiceCollection AddXCore(this IServiceCollection services, ICon
services.AddTransient<IExternalSignInValidator, ExternalSignInValidator>();
services.AddTransient<IExternalSignInUserBuilder, ExternalSignInUserBuilder>();

// provider for external fields
services.AddSingleton<IExternalFieldProvider, ExternalFieldProvider>();

services.AddTransient<ILoadUserToEvalContextService, LoadUserToEvalContextService>();
services.AddDistributedLockService(configuration);

Expand Down
91 changes: 0 additions & 91 deletions src/VirtoCommerce.Xapi.Data/Services/ExternalFieldProvider.cs

This file was deleted.

0 comments on commit a4d120a

Please sign in to comment.