apply fix on GraphQL ...
This commit is contained in:
@@ -1476,7 +1476,7 @@ namespace xDataService.Helpers
|
|||||||
// Register Graph Type ...
|
// Register Graph Type ...
|
||||||
source.Add(
|
source.Add(
|
||||||
new ServiceDescriptor(
|
new ServiceDescriptor(
|
||||||
lifetime: ServiceLifetime.Singleton,
|
lifetime: lifetime, // ServiceLifetime.Singleton,
|
||||||
serviceType: repositoryDescriptor.GraphType,
|
serviceType: repositoryDescriptor.GraphType,
|
||||||
implementationType: repositoryDescriptor.GraphType
|
implementationType: repositoryDescriptor.GraphType
|
||||||
)
|
)
|
||||||
@@ -1486,7 +1486,7 @@ namespace xDataService.Helpers
|
|||||||
// Register Graph Events ...
|
// Register Graph Events ...
|
||||||
source.Add(
|
source.Add(
|
||||||
new ServiceDescriptor(
|
new ServiceDescriptor(
|
||||||
lifetime: ServiceLifetime.Singleton,
|
lifetime: lifetime, // ServiceLifetime.Singleton,
|
||||||
serviceType: typeof(XBaseGraphQLEventType<TEntity, TKey, TGraph>),
|
serviceType: typeof(XBaseGraphQLEventType<TEntity, TKey, TGraph>),
|
||||||
implementationType: typeof(XBaseGraphQLEventType<TEntity, TKey, TGraph>)
|
implementationType: typeof(XBaseGraphQLEventType<TEntity, TKey, TGraph>)
|
||||||
)
|
)
|
||||||
@@ -1516,14 +1516,14 @@ namespace xDataService.Helpers
|
|||||||
// Register Graph Schema ...
|
// Register Graph Schema ...
|
||||||
source.Add(
|
source.Add(
|
||||||
new ServiceDescriptor(
|
new ServiceDescriptor(
|
||||||
|
lifetime: lifetime,
|
||||||
serviceType: repositoryDescriptor.GraphSchema,
|
serviceType: repositoryDescriptor.GraphSchema,
|
||||||
implementationType: repositoryDescriptor.GraphSchema,
|
implementationType: repositoryDescriptor.GraphSchema
|
||||||
lifetime: lifetime
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
//
|
//
|
||||||
source.AddSingleton<IDocumentExecuter, DocumentExecuter>();
|
source.AddScoped<IDocumentExecuter, DocumentExecuter>();
|
||||||
|
|
||||||
//
|
//
|
||||||
// Register Graph Type Schema ...
|
// Register Graph Type Schema ...
|
||||||
@@ -1544,9 +1544,12 @@ namespace xDataService.Helpers
|
|||||||
.AddNewtonsoftJson(deserializerSettings => { }, serializerSettings => { })
|
.AddNewtonsoftJson(deserializerSettings => { }, serializerSettings => { })
|
||||||
.AddWebSockets()
|
.AddWebSockets()
|
||||||
.AddDataLoader()
|
.AddDataLoader()
|
||||||
.AddGraphTypes();
|
.AddGraphTypes(lifetime);
|
||||||
}
|
}
|
||||||
builder.AddGraphTypes(repositoryDescriptor.GraphSchema);
|
builder.AddGraphTypes(
|
||||||
|
serviceLifetime: lifetime,
|
||||||
|
typeFromAssembly: repositoryDescriptor.GraphSchema
|
||||||
|
);
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user