diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/AnyScalarDefaultSerializationTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/AnyScalarDefaultSerializationTest.Client.cs index 4e5f44bd9d6..d23379093cb 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/AnyScalarDefaultSerializationTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/AnyScalarDefaultSerializationTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class AnyScalarDefaultSerializationClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddAnyScalarDefaultSerializationClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -100,7 +101,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.AnyScalarDefaultSerialization { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetJsonResult : global::System.IEquatable, IGetJsonResult { public GetJsonResult(global::System.Text.Json.JsonElement json) @@ -161,12 +163,14 @@ public GetJsonResult(global::System.Text.Json.JsonElement json) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetJsonResult { public global::System.Text.Json.JsonElement Json { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetJson GraphQL operation /// @@ -175,7 +179,7 @@ public partial interface IGetJsonResult /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetJsonQueryDocument : global::StrawberryShake.IDocument { private GetJsonQueryDocument() @@ -196,6 +200,7 @@ private GetJsonQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetJson GraphQL operation /// @@ -204,7 +209,7 @@ private GetJsonQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetJsonQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.AnyScalarDefaultSerialization.IGetJsonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -242,6 +247,7 @@ public GetJsonQuery(global::StrawberryShake.IOperationExecutor o } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetJson GraphQL operation /// @@ -250,17 +256,18 @@ public GetJsonQuery(global::StrawberryShake.IOperationExecutor o /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetJsonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the AnyScalarDefaultSerializationClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AnyScalarDefaultSerializationClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.AnyScalarDefaultSerialization.IAnyScalarDefaultSerializationClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.AnyScalarDefaultSerialization.IGetJsonQuery _getJson; @@ -273,10 +280,11 @@ public AnyScalarDefaultSerializationClient(global::StrawberryShake.CodeGeneratio public global::StrawberryShake.CodeGeneration.CSharp.Integration.AnyScalarDefaultSerialization.IGetJsonQuery GetJson => _getJson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the AnyScalarDefaultSerializationClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IAnyScalarDefaultSerializationClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.AnyScalarDefaultSerialization.IGetJsonQuery GetJson { get; } @@ -285,7 +293,8 @@ public partial interface IAnyScalarDefaultSerializationClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.AnyScalarDefaultSerialization.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetJsonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -316,7 +325,8 @@ public GetJsonResult Create(global::StrawberryShake.IOperationResultDataInfo dat } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetJsonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -338,7 +348,8 @@ public GetJsonResultInfo(global::System.Text.Json.JsonElement json, global::Syst } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetJsonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -381,7 +392,8 @@ public GetJsonBuilder(global::StrawberryShake.IEntityStore entityStore, global:: } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AnyScalarDefaultSerializationClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -402,7 +414,8 @@ public partial class AnyScalarDefaultSerializationClientEntityIdFactory : global } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AnyScalarDefaultSerializationClientStoreAccessor : global::StrawberryShake.StoreAccessor { public AnyScalarDefaultSerializationClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/EntityIdOrDataTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/EntityIdOrDataTest.Client.cs index 4a983fb8132..9d50e003786 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/EntityIdOrDataTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/EntityIdOrDataTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class EntityIdOrDataClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddEntityIdOrDataClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -102,7 +103,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.EntityIdOrData { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResult : global::System.IEquatable, IGetFooResult { public GetFooResult(global::System.Collections.Generic.IReadOnlyList? foo) @@ -173,7 +175,8 @@ public GetFooResult(global::System.Collections.Generic.IReadOnlyList, IGetFoo_Foo_Baz { public GetFoo_Foo_Baz(global::System.String? id) @@ -238,7 +241,8 @@ public GetFoo_Foo_Baz(global::System.String? id) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Quox : global::System.IEquatable, IGetFoo_Foo_Quox { public GetFoo_Foo_Quox(global::System.String? foo) @@ -303,7 +307,8 @@ public GetFoo_Foo_Quox(global::System.String? foo) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz2 : global::System.IEquatable, IGetFoo_Foo_Baz2 { public GetFoo_Foo_Baz2(global::System.String? id) @@ -368,7 +373,8 @@ public GetFoo_Foo_Baz2(global::System.String? id) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Quox2 : global::System.IEquatable, IGetFoo_Foo_Quox2 { public GetFoo_Foo_Quox2(global::System.String? foo) @@ -433,41 +439,48 @@ public GetFoo_Foo_Quox2(global::System.String? foo) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooResult { public global::System.Collections.Generic.IReadOnlyList? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz : IGetFoo_Foo { public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Quox : IGetFoo_Foo { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz2 : IGetFoo_Foo { public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Quox2 : IGetFoo_Foo { public global::System.String? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -496,7 +509,7 @@ public partial interface IGetFoo_Foo_Quox2 : IGetFoo_Foo /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQueryDocument : global::StrawberryShake.IDocument { private GetFooQueryDocument() @@ -517,6 +530,7 @@ private GetFooQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -545,7 +559,7 @@ private GetFooQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.EntityIdOrData.IGetFooQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -583,6 +597,7 @@ public GetFooQuery(global::StrawberryShake.IOperationExecutor ope } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -611,17 +626,18 @@ public GetFooQuery(global::StrawberryShake.IOperationExecutor ope /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the EntityIdOrDataClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class EntityIdOrDataClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.EntityIdOrData.IEntityIdOrDataClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.EntityIdOrData.IGetFooQuery _getFoo; @@ -634,10 +650,11 @@ public EntityIdOrDataClient(global::StrawberryShake.CodeGeneration.CSharp.Integr public global::StrawberryShake.CodeGeneration.CSharp.Integration.EntityIdOrData.IGetFooQuery GetFoo => _getFoo; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the EntityIdOrDataClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IEntityIdOrDataClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.EntityIdOrData.IGetFooQuery GetFoo { get; } @@ -646,6 +663,7 @@ public partial interface IEntityIdOrDataClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.EntityIdOrData.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BazEntity { @@ -657,6 +675,7 @@ public partial class BazEntity public global::System.String? Id { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Baz2Entity { @@ -668,7 +687,8 @@ public partial class Baz2Entity public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -784,7 +804,8 @@ public GetFooResult Create(global::StrawberryShake.IOperationResultDataInfo data } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -806,7 +827,8 @@ public GetFooResultInfo(global::System.Collections.Generic.IReadOnlyList { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -934,12 +956,14 @@ public GetFooBuilder(global::StrawberryShake.IEntityStore entityStore, global::S } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IBarData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class QuoxData : IBarData { @@ -954,6 +978,7 @@ public partial class QuoxData : IBarData public global::System.String? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Quox2Data : IBarData { @@ -968,7 +993,8 @@ public partial class Quox2Data : IBarData public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_BazFromBazEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -988,7 +1014,8 @@ public GetFoo_Foo_Baz Map(global::StrawberryShake.CodeGeneration.CSharp.Integrat } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz2FromBaz2EntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1008,7 +1035,8 @@ public GetFoo_Foo_Baz2 Map(global::StrawberryShake.CodeGeneration.CSharp.Integra } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class EntityIdOrDataClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1067,7 +1095,8 @@ public partial class EntityIdOrDataClientEntityIdFactory : global::StrawberrySha } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class EntityIdOrDataClientStoreAccessor : global::StrawberryShake.StoreAccessor { public EntityIdOrDataClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs index ba19011ce7a..d516ec36b23 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/MultiProfileTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class MultiProfileClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddMultiProfileClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly, global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.MultiProfileClientProfileKind profile = global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.MultiProfileClientProfileKind.InMemory) @@ -199,7 +200,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.IGetHero_Hero? hero) @@ -264,7 +266,8 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.M } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String name, global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.IGetHero_Hero_Friends? friends) @@ -333,7 +336,8 @@ public GetHero_Hero_Droid(global::System.String name, global::StrawberryShake.Co } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String name, global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.IGetHero_Hero_Friends? friends) @@ -402,10 +406,11 @@ public GetHero_Hero_Human(global::System.String name, global::StrawberryShake.Co } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_FriendsConnection : global::System.IEquatable, IGetHero_Hero_Friends_FriendsConnection { public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -479,7 +484,8 @@ public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Droid : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Droid { public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) @@ -540,7 +546,8 @@ public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Human : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Human { public GetHero_Hero_Friends_Nodes_Human(global::System.String name) @@ -601,13 +608,15 @@ public GetHero_Hero_Friends_Nodes_Human(global::System.String name) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero { public global::System.String Name { get; } @@ -615,20 +624,23 @@ public partial interface IGetHero_Hero public global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.IGetHero_Hero_Friends? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends { /// @@ -637,31 +649,36 @@ public partial interface IGetHero_Hero_Friends public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_FriendsConnection : IGetHero_Hero_Friends { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Droid : IGetHero_Hero_Friends_Nodes { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Human : IGetHero_Hero_Friends_Nodes { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResult : global::System.IEquatable, IOnReviewSubResult { public OnReviewSubResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.IOnReviewSub_OnReview onReview) @@ -722,7 +739,8 @@ public OnReviewSubResult(global::StrawberryShake.CodeGeneration.CSharp.Integrati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSub_OnReview_Review : global::System.IEquatable, IOnReviewSub_OnReview_Review { public OnReviewSub_OnReview_Review(global::System.String __typename, global::System.Int32 stars, global::System.String? commentary) @@ -798,13 +816,15 @@ public OnReviewSub_OnReview_Review(global::System.String __typename, global::Sys } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubResult { public global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.IOnReviewSub_OnReview OnReview { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSub_OnReview { /// @@ -817,12 +837,14 @@ public partial interface IOnReviewSub_OnReview public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSub_OnReview_Review : IOnReviewSub_OnReview { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutResult : global::System.IEquatable, ICreateReviewMutResult { public CreateReviewMutResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.ICreateReviewMut_CreateReview createReview) @@ -883,7 +905,8 @@ public CreateReviewMutResult(global::StrawberryShake.CodeGeneration.CSharp.Integ } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMut_CreateReview_Review : global::System.IEquatable, ICreateReviewMut_CreateReview_Review { public CreateReviewMut_CreateReview_Review(global::System.Int32 stars, global::System.String? commentary) @@ -952,13 +975,15 @@ public CreateReviewMut_CreateReview_Review(global::System.Int32 stars, global::S } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMutResult { public global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.ICreateReviewMut_CreateReview CreateReview { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMut_CreateReview { public global::System.Int32 Stars { get; } @@ -966,12 +991,14 @@ public partial interface ICreateReviewMut_CreateReview public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMut_CreateReview_Review : ICreateReviewMut_CreateReview { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReviewInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _intFormatter = default !; @@ -1029,6 +1056,7 @@ public void Initialize(global::StrawberryShake.Serialization.ISerializerResolver } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReviewInput : global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.State.IReviewInputInfo, global::System.IEquatable { @@ -1115,7 +1143,8 @@ public partial class ReviewInput : global::StrawberryShake.CodeGeneration.CSharp global::System.Boolean global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.State.IReviewInputInfo.IsCommentarySet => _set_commentary; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum Episode { NewHope, @@ -1123,7 +1152,8 @@ public enum Episode Jedi } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class EpisodeSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Episode"; @@ -1148,6 +1178,7 @@ public Episode Parse(global::System.String serializedValue) } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -1178,7 +1209,7 @@ public Episode Parse(global::System.String serializedValue) /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -1199,6 +1230,7 @@ private GetHeroQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -1229,7 +1261,7 @@ private GetHeroQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -1267,6 +1299,7 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -1297,13 +1330,14 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -1316,7 +1350,7 @@ public partial interface IGetHeroQuery : global::StrawberryShake.IOperationReque /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubSubscriptionDocument : global::StrawberryShake.IDocument { private OnReviewSubSubscriptionDocument() @@ -1337,6 +1371,7 @@ private OnReviewSubSubscriptionDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -1349,7 +1384,7 @@ private OnReviewSubSubscriptionDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubSubscription : global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.IOnReviewSubSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -1381,6 +1416,7 @@ public OnReviewSubSubscription(global::StrawberryShake.IOperationExecutor /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -1393,12 +1429,13 @@ public OnReviewSubSubscription(global::StrawberryShake.IOperationExecutor /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the CreateReviewMut GraphQL operation /// @@ -1411,7 +1448,7 @@ public partial interface IOnReviewSubSubscription : global::StrawberryShake.IOpe /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutMutationDocument : global::StrawberryShake.IDocument { private CreateReviewMutMutationDocument() @@ -1432,6 +1469,7 @@ private CreateReviewMutMutationDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the CreateReviewMut GraphQL operation /// @@ -1444,7 +1482,7 @@ private CreateReviewMutMutationDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutMutation : global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.ICreateReviewMutMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -1504,6 +1542,7 @@ public CreateReviewMutMutation(global::StrawberryShake.IOperationExecutor /// Represents the operation service of the CreateReviewMut GraphQL operation /// @@ -1516,17 +1555,18 @@ public CreateReviewMutMutation(global::StrawberryShake.IOperationExecutor /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMutMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.Episode episode, global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.ReviewInput review, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.Episode episode, global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.ReviewInput review, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the MultiProfileClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class MultiProfileClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.IMultiProfileClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.IGetHeroQuery _getHero; @@ -1545,10 +1585,11 @@ public MultiProfileClient(global::StrawberryShake.CodeGeneration.CSharp.Integrat public global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.ICreateReviewMutMutation CreateReviewMut => _createReviewMut; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the MultiProfileClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IMultiProfileClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.IGetHeroQuery GetHero { get; } @@ -1558,7 +1599,8 @@ public partial interface IMultiProfileClient global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.ICreateReviewMutMutation CreateReviewMut { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.TransportProfileEnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum MultiProfileClientProfileKind { InMemory, @@ -1568,6 +1610,7 @@ public enum MultiProfileClientProfileKind namespace StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -1582,6 +1625,7 @@ public partial class DroidEntity public global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.State.FriendsConnectionData? Friends { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -1596,7 +1640,8 @@ public partial class HumanEntity public global::StrawberryShake.CodeGeneration.CSharp.Integration.MultiProfile.State.FriendsConnectionData? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1651,7 +1696,8 @@ public GetHeroResult Create(global::StrawberryShake.IOperationResultDataInfo dat } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1673,7 +1719,8 @@ public GetHeroResultInfo(global::StrawberryShake.EntityId? hero, global::System. } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1719,7 +1766,8 @@ public OnReviewSubResult Create(global::StrawberryShake.IOperationResultDataInfo } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1741,7 +1789,8 @@ public OnReviewSubResultInfo(global::StrawberryShake.CodeGeneration.CSharp.Integ } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1787,7 +1836,8 @@ public CreateReviewMutResult Create(global::StrawberryShake.IOperationResultData } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1809,6 +1859,7 @@ public CreateReviewMutResultInfo(global::StrawberryShake.CodeGeneration.CSharp.I } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IReviewInputInfo { @@ -1817,7 +1868,8 @@ internal interface IReviewInputInfo global::System.Boolean IsCommentarySet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1994,7 +2046,8 @@ public GetHeroBuilder(global::StrawberryShake.IEntityStore entityStore, global:: } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2090,7 +2143,8 @@ public OnReviewSubBuilder(global::StrawberryShake.IEntityStore entityStore, glob } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2173,6 +2227,7 @@ public CreateReviewMutBuilder(global::StrawberryShake.IEntityStore entityStore, } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FriendsConnectionData @@ -2189,6 +2244,7 @@ public partial class FriendsConnectionData public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReviewData { @@ -2206,7 +2262,8 @@ public partial class ReviewData public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2286,7 +2343,8 @@ public GetHero_Hero_Droid Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2366,7 +2424,8 @@ public GetHero_Hero_Human Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2386,7 +2445,8 @@ public GetHero_Hero_Friends_Nodes_Droid Map(global::StrawberryShake.CodeGenerati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2406,7 +2466,8 @@ public GetHero_Hero_Friends_Nodes_Human Map(global::StrawberryShake.CodeGenerati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class MultiProfileClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -2465,7 +2526,8 @@ public partial class MultiProfileClientEntityIdFactory : global::StrawberryShake } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class MultiProfileClientStoreAccessor : global::StrawberryShake.StoreAccessor { public MultiProfileClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferInListTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferInListTest.Client.cs index 838dff74c84..093eb9fc60d 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferInListTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferInListTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class StarWarsGetFriendsDeferInListClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddStarWarsGetFriendsDeferInListClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -106,7 +107,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferInList { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferInList.IGetHero_Hero? hero) @@ -171,7 +173,8 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferInList.IGetHero_Hero_Friends? friends) @@ -236,7 +239,8 @@ public GetHero_Hero_Droid(global::StrawberryShake.CodeGeneration.CSharp.Integrat } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferInList.IGetHero_Hero_Friends? friends) @@ -301,10 +305,11 @@ public GetHero_Hero_Human(global::StrawberryShake.CodeGeneration.CSharp.Integrat } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_FriendsConnection : global::System.IEquatable, IGetHero_Hero_Friends_FriendsConnection { public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -378,7 +383,8 @@ public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CharacterName : global::System.IEquatable, ICharacterName { public CharacterName(global::System.String name) @@ -439,7 +445,8 @@ public CharacterName(global::System.String name) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Droid : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Droid { private readonly ICharacterName? _characterName; @@ -510,7 +517,8 @@ public GetHero_Hero_Friends_Nodes_Droid(ICharacterName? characterName) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Human : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Human { private readonly ICharacterName? _characterName; @@ -581,32 +589,37 @@ public GetHero_Hero_Friends_Nodes_Human(ICharacterName? characterName) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferInList.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferInList.IGetHero_Hero_Friends? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends { /// @@ -615,38 +628,44 @@ public partial interface IGetHero_Hero_Friends public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_FriendsConnection : IGetHero_Hero_Friends { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICharacterName { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes { public ICharacterName? CharacterName { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Droid : IGetHero_Hero_Friends_Nodes { public ICharacterName? CharacterName { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Human : IGetHero_Hero_Friends_Nodes { public ICharacterName? CharacterName { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -681,7 +700,7 @@ public partial interface IGetHero_Hero_Friends_Nodes_Human : IGetHero_Hero_Frien /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -702,6 +721,7 @@ private GetHeroQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -736,7 +756,7 @@ private GetHeroQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferInList.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -774,6 +794,7 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -808,17 +829,18 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the StarWarsGetFriendsDeferInListClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetFriendsDeferInListClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferInList.IStarWarsGetFriendsDeferInListClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferInList.IGetHeroQuery _getHero; @@ -831,10 +853,11 @@ public StarWarsGetFriendsDeferInListClient(global::StrawberryShake.CodeGeneratio public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferInList.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the StarWarsGetFriendsDeferInListClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStarWarsGetFriendsDeferInListClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferInList.IGetHeroQuery GetHero { get; } @@ -843,6 +866,7 @@ public partial interface IStarWarsGetFriendsDeferInListClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferInList.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -860,6 +884,7 @@ public partial class DroidEntity public global::System.String Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -877,7 +902,8 @@ public partial class HumanEntity public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -932,7 +958,8 @@ public GetHeroResult Create(global::StrawberryShake.IOperationResultDataInfo dat } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -954,7 +981,8 @@ public GetHeroResultInfo(global::StrawberryShake.EntityId? hero, global::System. } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1131,6 +1159,7 @@ public GetHeroBuilder(global::StrawberryShake.IEntityStore entityStore, global:: } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FriendsConnectionData @@ -1147,7 +1176,8 @@ public partial class FriendsConnectionData public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1227,7 +1257,8 @@ public GetHero_Hero_Droid Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1307,7 +1338,8 @@ public GetHero_Hero_Human Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1339,7 +1371,8 @@ public GetHero_Hero_Friends_Nodes_Droid Map(global::StrawberryShake.CodeGenerati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CharacterNameFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1359,7 +1392,8 @@ public CharacterName Map(global::StrawberryShake.CodeGeneration.CSharp.Integrati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1391,7 +1425,8 @@ public GetHero_Hero_Friends_Nodes_Human Map(global::StrawberryShake.CodeGenerati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CharacterNameFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1411,7 +1446,8 @@ public CharacterName Map(global::StrawberryShake.CodeGeneration.CSharp.Integrati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetFriendsDeferInListClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1489,7 +1525,8 @@ public partial class StarWarsGetFriendsDeferInListClientEntityIdFactory : global } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetFriendsDeferInListClientStoreAccessor : global::StrawberryShake.StoreAccessor { public StarWarsGetFriendsDeferInListClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.Client.cs index 06803b5abd9..a8d84baf7d1 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsDeferredTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class StarWarsGetFriendsDeferredClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddStarWarsGetFriendsDeferredClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -106,7 +107,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred.IGetHero_Hero? hero) @@ -171,7 +173,8 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FriendsList : global::System.IEquatable, IFriendsList { public FriendsList(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred.IGetHero_Hero_Friends? friends) @@ -236,7 +239,8 @@ public FriendsList(global::StrawberryShake.CodeGeneration.CSharp.Integration.Sta } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { private readonly IFriendsList? _friendsListLabel; @@ -311,7 +315,8 @@ public GetHero_Hero_Droid(global::System.String name, IFriendsList? friendsListL } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { private readonly IFriendsList? _friendsListLabel; @@ -386,10 +391,11 @@ public GetHero_Hero_Human(global::System.String name, IFriendsList? friendsListL } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_FriendsConnection : global::System.IEquatable, IGetHero_Hero_Friends_FriendsConnection { public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -463,7 +469,8 @@ public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Droid : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Droid { public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) @@ -524,7 +531,8 @@ public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Human : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Human { public GetHero_Hero_Friends_Nodes_Human(global::System.String name) @@ -585,19 +593,22 @@ public GetHero_Hero_Friends_Nodes_Human(global::System.String name) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFriendsList { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred.IGetHero_Hero_Friends? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero { public global::System.String Name { get; } @@ -605,22 +616,25 @@ public partial interface IGetHero_Hero public IFriendsList? FriendsListLabel { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero { public IFriendsList? FriendsListLabel { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero { public IFriendsList? FriendsListLabel { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends { /// @@ -629,30 +643,35 @@ public partial interface IGetHero_Hero_Friends public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_FriendsConnection : IGetHero_Hero_Friends { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Droid : IGetHero_Hero_Friends_Nodes { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Human : IGetHero_Hero_Friends_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -688,7 +707,7 @@ public partial interface IGetHero_Hero_Friends_Nodes_Human : IGetHero_Hero_Frien /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -709,6 +728,7 @@ private GetHeroQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -744,7 +764,7 @@ private GetHeroQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -782,6 +802,7 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -817,17 +838,18 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the StarWarsGetFriendsDeferredClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetFriendsDeferredClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred.IStarWarsGetFriendsDeferredClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred.IGetHeroQuery _getHero; @@ -840,10 +862,11 @@ public StarWarsGetFriendsDeferredClient(global::StrawberryShake.CodeGeneration.C public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the StarWarsGetFriendsDeferredClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStarWarsGetFriendsDeferredClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred.IGetHeroQuery GetHero { get; } @@ -852,6 +875,7 @@ public partial interface IStarWarsGetFriendsDeferredClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -869,6 +893,7 @@ public partial class DroidEntity public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred.State.FriendsConnectionData? Friends { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -886,7 +911,8 @@ public partial class HumanEntity public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsDeferred.State.FriendsConnectionData? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -941,7 +967,8 @@ public GetHeroResult Create(global::StrawberryShake.IOperationResultDataInfo dat } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -963,7 +990,8 @@ public GetHeroResultInfo(global::StrawberryShake.EntityId? hero, global::System. } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1140,6 +1168,7 @@ public GetHeroBuilder(global::StrawberryShake.IEntityStore entityStore, global:: } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FriendsConnectionData @@ -1156,7 +1185,8 @@ public partial class FriendsConnectionData public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1188,7 +1218,8 @@ public GetHero_Hero_Droid Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FriendsListFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1268,7 +1299,8 @@ public FriendsList Map(global::StrawberryShake.CodeGeneration.CSharp.Integration } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1300,7 +1332,8 @@ public GetHero_Hero_Human Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FriendsListFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1380,7 +1413,8 @@ public FriendsList Map(global::StrawberryShake.CodeGeneration.CSharp.Integration } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1400,7 +1434,8 @@ public GetHero_Hero_Friends_Nodes_Droid Map(global::StrawberryShake.CodeGenerati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1420,7 +1455,8 @@ public GetHero_Hero_Friends_Nodes_Human Map(global::StrawberryShake.CodeGenerati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetFriendsDeferredClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1498,7 +1534,8 @@ public partial class StarWarsGetFriendsDeferredClientEntityIdFactory : global::S } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetFriendsDeferredClientStoreAccessor : global::StrawberryShake.StoreAccessor { public StarWarsGetFriendsDeferredClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsNoStoreTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsNoStoreTest.Client.cs index 413c44206b9..c7e53f7d8e6 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsNoStoreTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsNoStoreTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class StarWarsGetFriendsNoStoreClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddStarWarsGetFriendsNoStoreClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -97,7 +98,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore.IGetHero_Hero? hero) @@ -162,7 +164,8 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore.IGetHero_Hero_Friends? friends) @@ -231,7 +234,8 @@ public GetHero_Hero_Droid(global::System.String name, global::StrawberryShake.Co } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore.IGetHero_Hero_Friends? friends) @@ -300,10 +304,11 @@ public GetHero_Hero_Human(global::System.String name, global::StrawberryShake.Co } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_FriendsConnection : global::System.IEquatable, IGetHero_Hero_Friends_FriendsConnection { public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -377,7 +382,8 @@ public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Droid : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Droid { public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) @@ -438,7 +444,8 @@ public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Human : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Human { public GetHero_Hero_Friends_Nodes_Human(global::System.String name) @@ -499,13 +506,15 @@ public GetHero_Hero_Friends_Nodes_Human(global::System.String name) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero { public global::System.String Name { get; } @@ -513,20 +522,23 @@ public partial interface IGetHero_Hero public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore.IGetHero_Hero_Friends? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends { /// @@ -535,30 +547,35 @@ public partial interface IGetHero_Hero_Friends public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_FriendsConnection : IGetHero_Hero_Friends { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Droid : IGetHero_Hero_Friends_Nodes { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Human : IGetHero_Hero_Friends_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -577,7 +594,7 @@ public partial interface IGetHero_Hero_Friends_Nodes_Human : IGetHero_Hero_Frien /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -598,6 +615,7 @@ private GetHeroQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -616,7 +634,7 @@ private GetHeroQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -654,6 +672,7 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -672,17 +691,18 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the StarWarsGetFriendsNoStoreClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetFriendsNoStoreClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore.IStarWarsGetFriendsNoStoreClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore.IGetHeroQuery _getHero; @@ -695,10 +715,11 @@ public StarWarsGetFriendsNoStoreClient(global::StrawberryShake.CodeGeneration.CS public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the StarWarsGetFriendsNoStoreClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStarWarsGetFriendsNoStoreClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore.IGetHeroQuery GetHero { get; } @@ -707,7 +728,8 @@ public partial interface IStarWarsGetFriendsNoStoreClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { public GetHeroResultFactory() @@ -815,7 +837,8 @@ public GetHeroResult Create(global::StrawberryShake.IOperationResultDataInfo dat } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { public GetHeroResultInfo(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriendsNoStore.State.ICharacterData? hero) @@ -833,7 +856,8 @@ public GetHeroResultInfo(global::StrawberryShake.CodeGeneration.CSharp.Integrati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.Serialization.ILeafValueParser _stringParser; @@ -934,18 +958,21 @@ public GetHeroBuilder(global::StrawberryShake.IOperationResultDataFactoryA connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FriendsConnectionData @@ -996,7 +1025,8 @@ public partial class FriendsConnectionData public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.NoStoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetFriendsNoStoreClientStoreAccessor : global::StrawberryShake.IStoreAccessor { public global::StrawberryShake.IOperationStore OperationStore => throw new global::System.NotSupportedException("OperationStore is not supported in store less mode"); diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsTest.Client.cs index 43c8158f66c..fe4081db1ea 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetFriendsTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class StarWarsGetFriendsClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddStarWarsGetFriendsClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -104,7 +105,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends.IGetHero_Hero? hero) @@ -169,7 +171,8 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends.IGetHero_Hero_Friends? friends) @@ -238,7 +241,8 @@ public GetHero_Hero_Droid(global::System.String name, global::StrawberryShake.Co } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends.IGetHero_Hero_Friends? friends) @@ -307,10 +311,11 @@ public GetHero_Hero_Human(global::System.String name, global::StrawberryShake.Co } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_FriendsConnection : global::System.IEquatable, IGetHero_Hero_Friends_FriendsConnection { public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -384,7 +389,8 @@ public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Droid : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Droid { public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) @@ -445,7 +451,8 @@ public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Human : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Human { public GetHero_Hero_Friends_Nodes_Human(global::System.String name) @@ -506,13 +513,15 @@ public GetHero_Hero_Friends_Nodes_Human(global::System.String name) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero { public global::System.String Name { get; } @@ -520,20 +529,23 @@ public partial interface IGetHero_Hero public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends.IGetHero_Hero_Friends? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends { /// @@ -542,30 +554,35 @@ public partial interface IGetHero_Hero_Friends public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_FriendsConnection : IGetHero_Hero_Friends { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Droid : IGetHero_Hero_Friends_Nodes { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Human : IGetHero_Hero_Friends_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -596,7 +613,7 @@ public partial interface IGetHero_Hero_Friends_Nodes_Human : IGetHero_Hero_Frien /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -617,6 +634,7 @@ private GetHeroQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -647,7 +665,7 @@ private GetHeroQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -685,6 +703,7 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -715,17 +734,18 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the StarWarsGetFriendsClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetFriendsClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends.IStarWarsGetFriendsClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends.IGetHeroQuery _getHero; @@ -738,10 +758,11 @@ public StarWarsGetFriendsClient(global::StrawberryShake.CodeGeneration.CSharp.In public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the StarWarsGetFriendsClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStarWarsGetFriendsClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends.IGetHeroQuery GetHero { get; } @@ -750,6 +771,7 @@ public partial interface IStarWarsGetFriendsClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -764,6 +786,7 @@ public partial class DroidEntity public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends.State.FriendsConnectionData? Friends { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -778,7 +801,8 @@ public partial class HumanEntity public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetFriends.State.FriendsConnectionData? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -833,7 +857,8 @@ public GetHeroResult Create(global::StrawberryShake.IOperationResultDataInfo dat } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -855,7 +880,8 @@ public GetHeroResultInfo(global::StrawberryShake.EntityId? hero, global::System. } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1032,6 +1058,7 @@ public GetHeroBuilder(global::StrawberryShake.IEntityStore entityStore, global:: } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FriendsConnectionData @@ -1048,7 +1075,8 @@ public partial class FriendsConnectionData public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1128,7 +1156,8 @@ public GetHero_Hero_Droid Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1208,7 +1237,8 @@ public GetHero_Hero_Human Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1228,7 +1258,8 @@ public GetHero_Hero_Friends_Nodes_Droid Map(global::StrawberryShake.CodeGenerati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1248,7 +1279,8 @@ public GetHero_Hero_Friends_Nodes_Human Map(global::StrawberryShake.CodeGenerati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetFriendsClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1307,7 +1339,8 @@ public partial class StarWarsGetFriendsClientEntityIdFactory : global::Strawberr } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetFriendsClientStoreAccessor : global::StrawberryShake.StoreAccessor { public StarWarsGetFriendsClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTest.Client.cs index 71712ba0abb..c4f7ecfc50e 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class StarWarsGetHeroClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddStarWarsGetHeroClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -102,7 +103,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHero { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHero.IGetHero_Hero? hero) @@ -167,7 +169,8 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String name) @@ -228,7 +231,8 @@ public GetHero_Hero_Droid(global::System.String name) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String name) @@ -289,28 +293,33 @@ public GetHero_Hero_Human(global::System.String name) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHero.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -328,7 +337,7 @@ public partial interface IGetHero_Hero_Human : IGetHero_Hero /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -349,6 +358,7 @@ private GetHeroQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -366,7 +376,7 @@ private GetHeroQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHero.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -404,6 +414,7 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -421,17 +432,18 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the StarWarsGetHeroClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetHeroClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHero.IStarWarsGetHeroClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHero.IGetHeroQuery _getHero; @@ -444,10 +456,11 @@ public StarWarsGetHeroClient(global::StrawberryShake.CodeGeneration.CSharp.Integ public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHero.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the StarWarsGetHeroClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStarWarsGetHeroClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHero.IGetHeroQuery GetHero { get; } @@ -456,6 +469,7 @@ public partial interface IStarWarsGetHeroClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHero.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -467,6 +481,7 @@ public partial class DroidEntity public global::System.String Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -478,7 +493,8 @@ public partial class HumanEntity public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -533,7 +549,8 @@ public GetHeroResult Create(global::StrawberryShake.IOperationResultDataInfo dat } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -555,7 +572,8 @@ public GetHeroResultInfo(global::StrawberryShake.EntityId? hero, global::System. } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -645,7 +663,8 @@ public GetHeroBuilder(global::StrawberryShake.IEntityStore entityStore, global:: } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -665,7 +684,8 @@ public GetHero_Hero_Droid Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -685,7 +705,8 @@ public GetHero_Hero_Human Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetHeroClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -744,7 +765,8 @@ public partial class StarWarsGetHeroClientEntityIdFactory : global::StrawberrySh } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetHeroClientStoreAccessor : global::StrawberryShake.StoreAccessor { public StarWarsGetHeroClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTraitsTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTraitsTest.Client.cs index 197ea786177..c51494e388f 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTraitsTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsGetHeroTraitsTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class StarWarsGetHeroTraitsClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddStarWarsGetHeroTraitsClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -103,7 +104,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHeroTraits { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHeroTraits.IGetHero_Hero? hero) @@ -168,7 +170,8 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String name, global::System.Text.Json.JsonElement? traits) @@ -237,7 +240,8 @@ public GetHero_Hero_Droid(global::System.String name, global::System.Text.Json.J } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String name, global::System.Text.Json.JsonElement? traits) @@ -306,13 +310,15 @@ public GetHero_Hero_Human(global::System.String name, global::System.Text.Json.J } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHeroTraits.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero { public global::System.String Name { get; } @@ -320,16 +326,19 @@ public partial interface IGetHero_Hero public global::System.Text.Json.JsonElement? Traits { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -348,7 +357,7 @@ public partial interface IGetHero_Hero_Human : IGetHero_Hero /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -369,6 +378,7 @@ private GetHeroQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -387,7 +397,7 @@ private GetHeroQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHeroTraits.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -425,6 +435,7 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -443,17 +454,18 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the StarWarsGetHeroTraitsClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetHeroTraitsClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHeroTraits.IStarWarsGetHeroTraitsClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHeroTraits.IGetHeroQuery _getHero; @@ -466,10 +478,11 @@ public StarWarsGetHeroTraitsClient(global::StrawberryShake.CodeGeneration.CSharp public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHeroTraits.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the StarWarsGetHeroTraitsClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStarWarsGetHeroTraitsClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHeroTraits.IGetHeroQuery GetHero { get; } @@ -478,6 +491,7 @@ public partial interface IStarWarsGetHeroTraitsClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsGetHeroTraits.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -492,6 +506,7 @@ public partial class DroidEntity public global::System.Text.Json.JsonElement? Traits { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -506,7 +521,8 @@ public partial class HumanEntity public global::System.Text.Json.JsonElement? Traits { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -561,7 +577,8 @@ public GetHeroResult Create(global::StrawberryShake.IOperationResultDataInfo dat } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -583,7 +600,8 @@ public GetHeroResultInfo(global::StrawberryShake.EntityId? hero, global::System. } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -690,7 +708,8 @@ public GetHeroBuilder(global::StrawberryShake.IEntityStore entityStore, global:: } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -710,7 +729,8 @@ public GetHero_Hero_Droid Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -730,7 +750,8 @@ public GetHero_Hero_Human Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetHeroTraitsClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -789,7 +810,8 @@ public partial class StarWarsGetHeroTraitsClientEntityIdFactory : global::Strawb } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsGetHeroTraitsClientStoreAccessor : global::StrawberryShake.StoreAccessor { public StarWarsGetHeroTraitsClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs index 50309450a48..387648efce5 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsIntrospectionTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class StarWarsIntrospectionClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddStarWarsIntrospectionClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -101,7 +102,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQueryResult : global::System.IEquatable, IIntrospectionQueryResult { public IntrospectionQueryResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema __schema) @@ -165,10 +167,11 @@ public IntrospectionQueryResult(global::StrawberryShake.CodeGeneration.CSharp.In } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema___Schema : global::System.IEquatable, IIntrospectionQuery___schema___Schema { public IntrospectionQuery___schema___Schema(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_QueryType queryType, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_MutationType? mutationType, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_SubscriptionType? subscriptionType, global::System.Collections.Generic.IReadOnlyList types, global::System.Collections.Generic.IReadOnlyList directives) @@ -276,12 +279,13 @@ public IntrospectionQuery___schema___Schema(global::StrawberryShake.CodeGenerati } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_QueryType___Type : global::System.IEquatable, IIntrospectionQuery___schema_QueryType___Type { public IntrospectionQuery___schema_QueryType___Type(global::System.String? name) @@ -346,12 +350,13 @@ public IntrospectionQuery___schema_QueryType___Type(global::System.String? name) } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_MutationType___Type : global::System.IEquatable, IIntrospectionQuery___schema_MutationType___Type { public IntrospectionQuery___schema_MutationType___Type(global::System.String? name) @@ -416,12 +421,13 @@ public IntrospectionQuery___schema_MutationType___Type(global::System.String? na } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_SubscriptionType___Type : global::System.IEquatable, IIntrospectionQuery___schema_SubscriptionType___Type { public IntrospectionQuery___schema_SubscriptionType___Type(global::System.String? name) @@ -486,12 +492,13 @@ public IntrospectionQuery___schema_SubscriptionType___Type(global::System.String } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types___Type { public IntrospectionQuery___schema_Types___Type(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind kind, global::System.String? name, global::System.String? description, global::System.Collections.Generic.IReadOnlyList? fields, global::System.Collections.Generic.IReadOnlyList? inputFields, global::System.Collections.Generic.IReadOnlyList? interfaces, global::System.Collections.Generic.IReadOnlyList? enumValues, global::System.Collections.Generic.IReadOnlyList? possibleTypes) @@ -623,12 +630,13 @@ public IntrospectionQuery___schema_Types___Type(global::StrawberryShake.CodeGene } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. /// /// In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Directives___Directive : global::System.IEquatable, IIntrospectionQuery___schema_Directives___Directive { public IntrospectionQuery___schema_Directives___Directive(global::System.String name, global::System.String? description, global::System.Collections.Generic.IReadOnlyList args, global::System.Boolean onOperation, global::System.Boolean onFragment, global::System.Boolean onField) @@ -717,10 +725,11 @@ public IntrospectionQuery___schema_Directives___Directive(global::System.String } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Fields___Field : global::System.IEquatable, IIntrospectionQuery___schema_Types_Fields___Field { public IntrospectionQuery___schema_Types_Fields___Field(global::System.String name, global::System.String? description, global::System.Collections.Generic.IReadOnlyList args, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Fields_Type type, global::System.Boolean isDeprecated, global::System.String? deprecationReason) @@ -813,10 +822,11 @@ public IntrospectionQuery___schema_Types_Fields___Field(global::System.String na } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_InputFields___InputValue : global::System.IEquatable, IIntrospectionQuery___schema_Types_InputFields___InputValue { public IntrospectionQuery___schema_Types_InputFields___InputValue(global::System.String name, global::System.String? description, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_InputFields_Type type, global::System.String? defaultValue) @@ -900,12 +910,13 @@ public IntrospectionQuery___schema_Types_InputFields___InputValue(global::System } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Interfaces___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Interfaces___Type { public IntrospectionQuery___schema_Types_Interfaces___Type(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind kind, global::System.String? name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType? ofType) @@ -982,10 +993,11 @@ public IntrospectionQuery___schema_Types_Interfaces___Type(global::StrawberrySha } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_EnumValues___EnumValue : global::System.IEquatable, IIntrospectionQuery___schema_Types_EnumValues___EnumValue { public IntrospectionQuery___schema_Types_EnumValues___EnumValue(global::System.String name, global::System.String? description, global::System.Boolean isDeprecated, global::System.String? deprecationReason) @@ -1066,12 +1078,13 @@ public IntrospectionQuery___schema_Types_EnumValues___EnumValue(global::System.S } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_PossibleTypes___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_PossibleTypes___Type { public IntrospectionQuery___schema_Types_PossibleTypes___Type(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind kind, global::System.String? name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType? ofType) @@ -1148,10 +1161,11 @@ public IntrospectionQuery___schema_Types_PossibleTypes___Type(global::Strawberry } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Directives_Args___InputValue : global::System.IEquatable, IIntrospectionQuery___schema_Directives_Args___InputValue { public IntrospectionQuery___schema_Directives_Args___InputValue(global::System.String name, global::System.String? description, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_InputFields_Type type, global::System.String? defaultValue) @@ -1235,10 +1249,11 @@ public IntrospectionQuery___schema_Directives_Args___InputValue(global::System.S } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Fields_Args___InputValue : global::System.IEquatable, IIntrospectionQuery___schema_Types_Fields_Args___InputValue { public IntrospectionQuery___schema_Types_Fields_Args___InputValue(global::System.String name, global::System.String? description, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_InputFields_Type type, global::System.String? defaultValue) @@ -1322,12 +1337,13 @@ public IntrospectionQuery___schema_Types_Fields_Args___InputValue(global::System } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Fields_Type___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Fields_Type___Type { public IntrospectionQuery___schema_Types_Fields_Type___Type(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind kind, global::System.String? name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType? ofType) @@ -1404,12 +1420,13 @@ public IntrospectionQuery___schema_Types_Fields_Type___Type(global::StrawberrySh } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_InputFields_Type___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_InputFields_Type___Type { public IntrospectionQuery___schema_Types_InputFields_Type___Type(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind kind, global::System.String? name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType? ofType) @@ -1486,12 +1503,13 @@ public IntrospectionQuery___schema_Types_InputFields_Type___Type(global::Strawbe } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Interfaces_OfType___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Interfaces_OfType___Type { public IntrospectionQuery___schema_Types_Interfaces_OfType___Type(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind kind, global::System.String? name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? ofType) @@ -1568,12 +1586,13 @@ public IntrospectionQuery___schema_Types_Interfaces_OfType___Type(global::Strawb } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_PossibleTypes_OfType___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_PossibleTypes_OfType___Type { public IntrospectionQuery___schema_Types_PossibleTypes_OfType___Type(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind kind, global::System.String? name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? ofType) @@ -1650,12 +1669,13 @@ public IntrospectionQuery___schema_Types_PossibleTypes_OfType___Type(global::Str } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Directives_Args_Type___Type : global::System.IEquatable, IIntrospectionQuery___schema_Directives_Args_Type___Type { public IntrospectionQuery___schema_Directives_Args_Type___Type(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind kind, global::System.String? name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType? ofType) @@ -1732,12 +1752,13 @@ public IntrospectionQuery___schema_Directives_Args_Type___Type(global::Strawberr } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Fields_Args_Type___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Fields_Args_Type___Type { public IntrospectionQuery___schema_Types_Fields_Args_Type___Type(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind kind, global::System.String? name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType? ofType) @@ -1814,12 +1835,13 @@ public IntrospectionQuery___schema_Types_Fields_Args_Type___Type(global::Strawbe } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Fields_Type_OfType___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Fields_Type_OfType___Type { public IntrospectionQuery___schema_Types_Fields_Type_OfType___Type(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind kind, global::System.String? name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? ofType) @@ -1896,12 +1918,13 @@ public IntrospectionQuery___schema_Types_Fields_Type_OfType___Type(global::Straw } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_InputFields_Type_OfType___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_InputFields_Type_OfType___Type { public IntrospectionQuery___schema_Types_InputFields_Type_OfType___Type(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind kind, global::System.String? name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? ofType) @@ -1978,12 +2001,13 @@ public IntrospectionQuery___schema_Types_InputFields_Type_OfType___Type(global:: } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Interfaces_OfType_OfType___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType___Type { public IntrospectionQuery___schema_Types_Interfaces_OfType_OfType___Type(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind kind, global::System.String? name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType? ofType) @@ -2060,12 +2084,13 @@ public IntrospectionQuery___schema_Types_Interfaces_OfType_OfType___Type(global: } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType___Type { public IntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType___Type(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind kind, global::System.String? name) @@ -2134,7 +2159,8 @@ public IntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType___Type( } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQueryResult { /// @@ -2143,10 +2169,11 @@ public partial interface IIntrospectionQueryResult public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema __schema { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema { /// @@ -2175,83 +2202,91 @@ public partial interface IIntrospectionQuery___schema public global::System.Collections.Generic.IReadOnlyList Directives { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema___Schema : IIntrospectionQuery___schema { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_QueryType { public global::System.String? Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_QueryType___Type : IIntrospectionQuery___schema_QueryType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_MutationType { public global::System.String? Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_MutationType___Type : IIntrospectionQuery___schema_MutationType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_SubscriptionType { public global::System.String? Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_SubscriptionType___Type : IIntrospectionQuery___schema_SubscriptionType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFullType { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind Kind { get; } @@ -2271,32 +2306,35 @@ public partial interface IFullType public global::System.Collections.Generic.IReadOnlyList? PossibleTypes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types : IFullType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types___Type : IIntrospectionQuery___schema_Types { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. /// /// In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Directives { public global::System.String Name { get; } @@ -2312,20 +2350,22 @@ public partial interface IIntrospectionQuery___schema_Directives public global::System.Boolean OnField { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. /// /// In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Directives___Directive : IIntrospectionQuery___schema_Directives { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields { public global::System.String Name { get; } @@ -2341,18 +2381,20 @@ public partial interface IIntrospectionQuery___schema_Types_Fields public global::System.String? DeprecationReason { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields___Field : IIntrospectionQuery___schema_Types_Fields { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IInputValue { public global::System.String Name { get; } @@ -2367,28 +2409,31 @@ public partial interface IInputValue public global::System.String? DefaultValue { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_InputFields : IInputValue { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_InputFields___InputValue : IIntrospectionQuery___schema_Types_InputFields { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITypeRef { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind Kind { get; } @@ -2398,30 +2443,33 @@ public partial interface ITypeRef public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces : ITypeRef { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces___Type : IIntrospectionQuery___schema_Types_Interfaces { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_EnumValues { public global::System.String Name { get; } @@ -2433,112 +2481,124 @@ public partial interface IIntrospectionQuery___schema_Types_EnumValues public global::System.String? DeprecationReason { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_EnumValues___EnumValue : IIntrospectionQuery___schema_Types_EnumValues { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_PossibleTypes : ITypeRef { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_PossibleTypes___Type : IIntrospectionQuery___schema_Types_PossibleTypes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Directives_Args : IInputValue { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Directives_Args___InputValue : IIntrospectionQuery___schema_Directives_Args { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Args : IInputValue { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Args___InputValue : IIntrospectionQuery___schema_Types_Fields_Args { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Type : ITypeRef { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Type___Type : IIntrospectionQuery___schema_Types_Fields_Type { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_InputFields_Type : ITypeRef { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_InputFields_Type___Type : IIntrospectionQuery___schema_Types_InputFields_Type { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind Kind { get; } @@ -2548,22 +2608,24 @@ public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType___Type : IIntrospectionQuery___schema_Types_Interfaces_OfType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_PossibleTypes_OfType { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind Kind { get; } @@ -2573,62 +2635,68 @@ public partial interface IIntrospectionQuery___schema_Types_PossibleTypes_OfType public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_PossibleTypes_OfType___Type : IIntrospectionQuery___schema_Types_PossibleTypes_OfType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Directives_Args_Type : ITypeRef { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Directives_Args_Type___Type : IIntrospectionQuery___schema_Directives_Args_Type { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Args_Type : ITypeRef { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Args_Type___Type : IIntrospectionQuery___schema_Types_Fields_Args_Type { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Type_OfType { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind Kind { get; } @@ -2638,22 +2706,24 @@ public partial interface IIntrospectionQuery___schema_Types_Fields_Type_OfType public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Type_OfType___Type : IIntrospectionQuery___schema_Types_Fields_Type_OfType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_InputFields_Type_OfType { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind Kind { get; } @@ -2663,22 +2733,24 @@ public partial interface IIntrospectionQuery___schema_Types_InputFields_Type_OfT public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_InputFields_Type_OfType___Type : IIntrospectionQuery___schema_Types_InputFields_Type_OfType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind Kind { get; } @@ -2688,22 +2760,24 @@ public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType_Of public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType___Type : IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.__TypeKind Kind { get; } @@ -2711,20 +2785,22 @@ public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType_Of public global::System.String? Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType___Type : IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator /// /// An enum describing what kind of type a given `__Type` is. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum __TypeKind { /// @@ -2761,7 +2837,8 @@ public enum __TypeKind NonNull } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class __TypeKindSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "__TypeKind"; @@ -2796,6 +2873,7 @@ public __TypeKind Parse(global::System.String serializedValue) } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the IntrospectionQuery GraphQL operation /// @@ -2904,7 +2982,7 @@ public __TypeKind Parse(global::System.String serializedValue) /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQueryQueryDocument : global::StrawberryShake.IDocument { private IntrospectionQueryQueryDocument() @@ -2925,6 +3003,7 @@ private IntrospectionQueryQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the IntrospectionQuery GraphQL operation /// @@ -3033,7 +3112,7 @@ private IntrospectionQueryQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQueryQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQueryQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -3071,6 +3150,7 @@ public IntrospectionQueryQuery(global::StrawberryShake.IOperationExecutor /// Represents the operation service of the IntrospectionQuery GraphQL operation /// @@ -3179,17 +3259,18 @@ public IntrospectionQueryQuery(global::StrawberryShake.IOperationExecutor /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQueryQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the StarWarsIntrospectionClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsIntrospectionClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IStarWarsIntrospectionClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQueryQuery _introspectionQuery; @@ -3202,10 +3283,11 @@ public StarWarsIntrospectionClient(global::StrawberryShake.CodeGeneration.CSharp public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQueryQuery IntrospectionQuery => _introspectionQuery; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the StarWarsIntrospectionClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStarWarsIntrospectionClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.IIntrospectionQueryQuery IntrospectionQuery { get; } @@ -3214,7 +3296,8 @@ public partial interface IStarWarsIntrospectionClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQueryResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3684,7 +3767,8 @@ public IntrospectionQueryResult Create(global::StrawberryShake.IOperationResultD } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQueryResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -3709,7 +3793,8 @@ public IntrospectionQueryResultInfo(global::StrawberryShake.CodeGeneration.CShar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQueryBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -4368,6 +4453,7 @@ public IntrospectionQueryBuilder(global::StrawberryShake.IEntityStore entityStor } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class __SchemaData @@ -4400,6 +4486,7 @@ public partial class __SchemaData public global::System.Collections.Generic.IReadOnlyList? Directives { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class __TypeData @@ -4439,6 +4526,7 @@ public partial class __TypeData public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsIntrospection.State.__TypeData? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class __DirectiveData @@ -4469,6 +4557,7 @@ public partial class __DirectiveData public global::System.Boolean? OnField { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class __FieldData @@ -4499,6 +4588,7 @@ public partial class __FieldData public global::System.String? DeprecationReason { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class __InputValueData @@ -4524,6 +4614,7 @@ public partial class __InputValueData public global::System.String? DefaultValue { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class __EnumValueData @@ -4548,7 +4639,8 @@ public partial class __EnumValueData public global::System.String? DeprecationReason { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsIntrospectionClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -4569,7 +4661,8 @@ public partial class StarWarsIntrospectionClientEntityIdFactory : global::Strawb } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsIntrospectionClientStoreAccessor : global::StrawberryShake.StoreAccessor { public StarWarsIntrospectionClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs index c31904fad49..1487245c568 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubCompletionTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class StarWarsOnReviewSubCompletionClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddStarWarsOnReviewSubCompletionClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubCompletion.StarWarsOnReviewSubCompletionClientProfileKind profile = global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubCompletion.StarWarsOnReviewSubCompletionClientProfileKind.InMemory) @@ -148,7 +149,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubCompletion { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResult : global::System.IEquatable, IOnReviewSubResult { public OnReviewSubResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubCompletion.IOnReviewSub_OnReview onReview) @@ -209,7 +211,8 @@ public OnReviewSubResult(global::StrawberryShake.CodeGeneration.CSharp.Integrati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSub_OnReview_Review : global::System.IEquatable, IOnReviewSub_OnReview_Review { public OnReviewSub_OnReview_Review(global::System.String __typename, global::System.Int32 stars, global::System.String? commentary) @@ -285,13 +288,15 @@ public OnReviewSub_OnReview_Review(global::System.String __typename, global::Sys } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubResult { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubCompletion.IOnReviewSub_OnReview OnReview { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSub_OnReview { /// @@ -304,11 +309,13 @@ public partial interface IOnReviewSub_OnReview public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSub_OnReview_Review : IOnReviewSub_OnReview { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -321,7 +328,7 @@ public partial interface IOnReviewSub_OnReview_Review : IOnReviewSub_OnReview /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubSubscriptionDocument : global::StrawberryShake.IDocument { private OnReviewSubSubscriptionDocument() @@ -342,6 +349,7 @@ private OnReviewSubSubscriptionDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -354,7 +362,7 @@ private OnReviewSubSubscriptionDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubSubscription : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubCompletion.IOnReviewSubSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -386,6 +394,7 @@ public OnReviewSubSubscription(global::StrawberryShake.IOperationExecutor /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -398,16 +407,17 @@ public OnReviewSubSubscription(global::StrawberryShake.IOperationExecutor /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the StarWarsOnReviewSubCompletionClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsOnReviewSubCompletionClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubCompletion.IStarWarsOnReviewSubCompletionClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubCompletion.IOnReviewSubSubscription _onReviewSub; @@ -420,16 +430,18 @@ public StarWarsOnReviewSubCompletionClient(global::StrawberryShake.CodeGeneratio public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubCompletion.IOnReviewSubSubscription OnReviewSub => _onReviewSub; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the StarWarsOnReviewSubCompletionClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStarWarsOnReviewSubCompletionClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubCompletion.IOnReviewSubSubscription OnReviewSub { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.TransportProfileEnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum StarWarsOnReviewSubCompletionClientProfileKind { InMemory, @@ -439,7 +451,8 @@ public enum StarWarsOnReviewSubCompletionClientProfileKind namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubCompletion.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -485,7 +498,8 @@ public OnReviewSubResult Create(global::StrawberryShake.IOperationResultDataInfo } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -507,7 +521,8 @@ public OnReviewSubResultInfo(global::StrawberryShake.CodeGeneration.CSharp.Integ } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -603,6 +618,7 @@ public OnReviewSubBuilder(global::StrawberryShake.IEntityStore entityStore, glob } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReviewData { @@ -620,7 +636,8 @@ public partial class ReviewData public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsOnReviewSubCompletionClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -641,7 +658,8 @@ public partial class StarWarsOnReviewSubCompletionClientEntityIdFactory : global } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsOnReviewSubCompletionClientStoreAccessor : global::StrawberryShake.StoreAccessor { public StarWarsOnReviewSubCompletionClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubGraphQLSSETest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubGraphQLSSETest.Client.cs index d574240b53c..2a8008b9c52 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubGraphQLSSETest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubGraphQLSSETest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class StarWarsOnReviewSubGraphQLSSEClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddStarWarsOnReviewSubGraphQLSSEClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -100,7 +101,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubGraphQLSSE { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResult : global::System.IEquatable, IOnReviewSubResult { public OnReviewSubResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubGraphQLSSE.IOnReviewSub_OnReview onReview) @@ -161,7 +163,8 @@ public OnReviewSubResult(global::StrawberryShake.CodeGeneration.CSharp.Integrati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSub_OnReview_Review : global::System.IEquatable, IOnReviewSub_OnReview_Review { public OnReviewSub_OnReview_Review(global::System.String __typename, global::System.Int32 stars, global::System.String? commentary) @@ -237,13 +240,15 @@ public OnReviewSub_OnReview_Review(global::System.String __typename, global::Sys } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubResult { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubGraphQLSSE.IOnReviewSub_OnReview OnReview { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSub_OnReview { /// @@ -256,11 +261,13 @@ public partial interface IOnReviewSub_OnReview public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSub_OnReview_Review : IOnReviewSub_OnReview { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -273,7 +280,7 @@ public partial interface IOnReviewSub_OnReview_Review : IOnReviewSub_OnReview /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubSubscriptionDocument : global::StrawberryShake.IDocument { private OnReviewSubSubscriptionDocument() @@ -294,6 +301,7 @@ private OnReviewSubSubscriptionDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -306,7 +314,7 @@ private OnReviewSubSubscriptionDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubSubscription : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubGraphQLSSE.IOnReviewSubSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -338,6 +346,7 @@ public OnReviewSubSubscription(global::StrawberryShake.IOperationExecutor /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -350,16 +359,17 @@ public OnReviewSubSubscription(global::StrawberryShake.IOperationExecutor /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the StarWarsOnReviewSubGraphQLSSEClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsOnReviewSubGraphQLSSEClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubGraphQLSSE.IStarWarsOnReviewSubGraphQLSSEClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubGraphQLSSE.IOnReviewSubSubscription _onReviewSub; @@ -372,10 +382,11 @@ public StarWarsOnReviewSubGraphQLSSEClient(global::StrawberryShake.CodeGeneratio public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubGraphQLSSE.IOnReviewSubSubscription OnReviewSub => _onReviewSub; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the StarWarsOnReviewSubGraphQLSSEClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStarWarsOnReviewSubGraphQLSSEClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubGraphQLSSE.IOnReviewSubSubscription OnReviewSub { get; } @@ -384,7 +395,8 @@ public partial interface IStarWarsOnReviewSubGraphQLSSEClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubGraphQLSSE.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -430,7 +442,8 @@ public OnReviewSubResult Create(global::StrawberryShake.IOperationResultDataInfo } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -452,7 +465,8 @@ public OnReviewSubResultInfo(global::StrawberryShake.CodeGeneration.CSharp.Integ } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -548,6 +562,7 @@ public OnReviewSubBuilder(global::StrawberryShake.IEntityStore entityStore, glob } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReviewData { @@ -565,7 +580,8 @@ public partial class ReviewData public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsOnReviewSubGraphQLSSEClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -586,7 +602,8 @@ public partial class StarWarsOnReviewSubGraphQLSSEClientEntityIdFactory : global } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsOnReviewSubGraphQLSSEClientStoreAccessor : global::StrawberryShake.StoreAccessor { public StarWarsOnReviewSubGraphQLSSEClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubNoStoreTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubNoStoreTest.Client.cs index 2cbe97bf7f0..6cd22a59c76 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubNoStoreTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsOnReviewSubNoStoreTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class StarWarsOnReviewSubNoStoreClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddStarWarsOnReviewSubNoStoreClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -97,7 +98,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubNoStore { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResult : global::System.IEquatable, IOnReviewSubResult { public OnReviewSubResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubNoStore.IOnReviewSub_OnReview onReview) @@ -158,7 +160,8 @@ public OnReviewSubResult(global::StrawberryShake.CodeGeneration.CSharp.Integrati } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSub_OnReview_Review : global::System.IEquatable, IOnReviewSub_OnReview_Review { public OnReviewSub_OnReview_Review(global::System.String __typename, global::System.Int32 stars, global::System.String? commentary) @@ -234,13 +237,15 @@ public OnReviewSub_OnReview_Review(global::System.String __typename, global::Sys } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubResult { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubNoStore.IOnReviewSub_OnReview OnReview { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSub_OnReview { /// @@ -253,11 +258,13 @@ public partial interface IOnReviewSub_OnReview public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSub_OnReview_Review : IOnReviewSub_OnReview { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -270,7 +277,7 @@ public partial interface IOnReviewSub_OnReview_Review : IOnReviewSub_OnReview /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubSubscriptionDocument : global::StrawberryShake.IDocument { private OnReviewSubSubscriptionDocument() @@ -291,6 +298,7 @@ private OnReviewSubSubscriptionDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -303,7 +311,7 @@ private OnReviewSubSubscriptionDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubSubscription : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubNoStore.IOnReviewSubSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -335,6 +343,7 @@ public OnReviewSubSubscription(global::StrawberryShake.IOperationExecutor /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -347,16 +356,17 @@ public OnReviewSubSubscription(global::StrawberryShake.IOperationExecutor /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the StarWarsOnReviewSubNoStoreClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsOnReviewSubNoStoreClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubNoStore.IStarWarsOnReviewSubNoStoreClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubNoStore.IOnReviewSubSubscription _onReviewSub; @@ -369,10 +379,11 @@ public StarWarsOnReviewSubNoStoreClient(global::StrawberryShake.CodeGeneration.C public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubNoStore.IOnReviewSubSubscription OnReviewSub => _onReviewSub; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the StarWarsOnReviewSubNoStoreClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStarWarsOnReviewSubNoStoreClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubNoStore.IOnReviewSubSubscription OnReviewSub { get; } @@ -381,7 +392,8 @@ public partial interface IStarWarsOnReviewSubNoStoreClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubNoStore.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResultFactory : global::StrawberryShake.IOperationResultDataFactory { public OnReviewSubResultFactory() @@ -420,7 +432,8 @@ public OnReviewSubResult Create(global::StrawberryShake.IOperationResultDataInfo } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResultInfo : global::StrawberryShake.IOperationResultDataInfo { public OnReviewSubResultInfo(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsOnReviewSubNoStore.State.ReviewData onReview) @@ -438,7 +451,8 @@ public OnReviewSubResultInfo(global::StrawberryShake.CodeGeneration.CSharp.Integ } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.Serialization.ILeafValueParser _stringParser; @@ -524,6 +538,7 @@ public OnReviewSubBuilder(global::StrawberryShake.IOperationResultDataFactory throw new global::System.NotSupportedException("OperationStore is not supported in store less mode"); diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnInterfacesTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnInterfacesTest.Client.cs index d2bc0325293..b9501b1f6a0 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnInterfacesTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnInterfacesTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class StarWarsTypeNameOnInterfacesClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddStarWarsTypeNameOnInterfacesClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -102,7 +103,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnInterfaces { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnInterfaces.IGetHero_Hero? hero) @@ -167,7 +169,8 @@ public GetHeroResult(global::StrawberryShake.CodeGeneration.CSharp.Integration.S } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String __typename) @@ -231,7 +234,8 @@ public GetHero_Hero_Droid(global::System.String __typename) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String __typename) @@ -295,28 +299,33 @@ public GetHero_Hero_Human(global::System.String __typename) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnInterfaces.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero { public global::System.String __typename { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -333,7 +342,7 @@ public partial interface IGetHero_Hero_Human : IGetHero_Hero /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -354,6 +363,7 @@ private GetHeroQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -370,7 +380,7 @@ private GetHeroQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnInterfaces.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -408,6 +418,7 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -424,17 +435,18 @@ public GetHeroQuery(global::StrawberryShake.IOperationExecutor o /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the StarWarsTypeNameOnInterfacesClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsTypeNameOnInterfacesClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnInterfaces.IStarWarsTypeNameOnInterfacesClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnInterfaces.IGetHeroQuery _getHero; @@ -447,10 +459,11 @@ public StarWarsTypeNameOnInterfacesClient(global::StrawberryShake.CodeGeneration public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnInterfaces.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the StarWarsTypeNameOnInterfacesClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStarWarsTypeNameOnInterfacesClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnInterfaces.IGetHeroQuery GetHero { get; } @@ -459,6 +472,7 @@ public partial interface IStarWarsTypeNameOnInterfacesClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnInterfaces.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -471,6 +485,7 @@ public partial class DroidEntity public global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -483,7 +498,8 @@ public partial class HumanEntity public global::System.String __typename { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -538,7 +554,8 @@ public GetHeroResult Create(global::StrawberryShake.IOperationResultDataInfo dat } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -560,7 +577,8 @@ public GetHeroResultInfo(global::StrawberryShake.EntityId? hero, global::System. } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -650,7 +668,8 @@ public GetHeroBuilder(global::StrawberryShake.IEntityStore entityStore, global:: } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -670,7 +689,8 @@ public GetHero_Hero_Droid Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -690,7 +710,8 @@ public GetHero_Hero_Human Map(global::StrawberryShake.CodeGeneration.CSharp.Inte } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsTypeNameOnInterfacesClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -749,7 +770,8 @@ public partial class StarWarsTypeNameOnInterfacesClientEntityIdFactory : global: } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsTypeNameOnInterfacesClientStoreAccessor : global::StrawberryShake.StoreAccessor { public StarWarsTypeNameOnInterfacesClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnUnionsTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnUnionsTest.Client.cs index 7891f7fd5f0..c359749261b 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnUnionsTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsTypeNameOnUnionsTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class StarWarsTypeNameOnUnionsClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddStarWarsTypeNameOnUnionsClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -103,7 +104,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnUnions { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResult : global::System.IEquatable, ISearchHeroResult { public SearchHeroResult(global::System.Collections.Generic.IReadOnlyList? search) @@ -174,7 +176,8 @@ public SearchHeroResult(global::System.Collections.Generic.IReadOnlyList, ISearchHero_Search_Starship { public SearchHero_Search_Starship(global::System.String __typename) @@ -238,7 +241,8 @@ public SearchHero_Search_Starship(global::System.String __typename) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Human : global::System.IEquatable, ISearchHero_Search_Human { public SearchHero_Search_Human(global::System.String __typename) @@ -302,7 +306,8 @@ public SearchHero_Search_Human(global::System.String __typename) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Droid : global::System.IEquatable, ISearchHero_Search_Droid { public SearchHero_Search_Droid(global::System.String __typename) @@ -366,33 +371,39 @@ public SearchHero_Search_Droid(global::System.String __typename) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHeroResult { public global::System.Collections.Generic.IReadOnlyList? Search { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search { public global::System.String __typename { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Starship : ISearchHero_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Human : ISearchHero_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Droid : ISearchHero_Search { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -412,7 +423,7 @@ public partial interface ISearchHero_Search_Droid : ISearchHero_Search /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroQueryDocument : global::StrawberryShake.IDocument { private SearchHeroQueryDocument() @@ -433,6 +444,7 @@ private SearchHeroQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -452,7 +464,7 @@ private SearchHeroQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnUnions.ISearchHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -490,6 +502,7 @@ public SearchHeroQuery(global::StrawberryShake.IOperationExecutor /// Represents the operation service of the SearchHero GraphQL operation /// @@ -509,17 +522,18 @@ public SearchHeroQuery(global::StrawberryShake.IOperationExecutor /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the StarWarsTypeNameOnUnionsClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsTypeNameOnUnionsClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnUnions.IStarWarsTypeNameOnUnionsClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnUnions.ISearchHeroQuery _searchHero; @@ -532,10 +546,11 @@ public StarWarsTypeNameOnUnionsClient(global::StrawberryShake.CodeGeneration.CSh public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnUnions.ISearchHeroQuery SearchHero => _searchHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the StarWarsTypeNameOnUnionsClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStarWarsTypeNameOnUnionsClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnUnions.ISearchHeroQuery SearchHero { get; } @@ -544,6 +559,7 @@ public partial interface IStarWarsTypeNameOnUnionsClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsTypeNameOnUnions.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class StarshipEntity { @@ -556,6 +572,7 @@ public partial class StarshipEntity public global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -568,6 +585,7 @@ public partial class HumanEntity public global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -580,7 +598,8 @@ public partial class DroidEntity public global::System.String __typename { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -658,7 +677,8 @@ public SearchHeroResult Create(global::StrawberryShake.IOperationResultDataInfo } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -680,7 +700,8 @@ public SearchHeroResultInfo(global::System.Collections.Generic.IReadOnlyList { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -805,7 +826,8 @@ public SearchHeroBuilder(global::StrawberryShake.IEntityStore entityStore, globa } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_StarshipFromStarshipEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -825,7 +847,8 @@ public SearchHero_Search_Starship Map(global::StrawberryShake.CodeGeneration.CSh } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -845,7 +868,8 @@ public SearchHero_Search_Human Map(global::StrawberryShake.CodeGeneration.CSharp } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -865,7 +889,8 @@ public SearchHero_Search_Droid Map(global::StrawberryShake.CodeGeneration.CSharp } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsTypeNameOnUnionsClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -943,7 +968,8 @@ public partial class StarWarsTypeNameOnUnionsClientEntityIdFactory : global::Str } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsTypeNameOnUnionsClientStoreAccessor : global::StrawberryShake.StoreAccessor { public StarWarsTypeNameOnUnionsClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsUnionListTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsUnionListTest.Client.cs index 00e291b31cf..fb728bb4056 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsUnionListTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/StarWarsUnionListTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class StarWarsUnionListClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddStarWarsUnionListClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -105,7 +106,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsUnionList { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResult : global::System.IEquatable, ISearchHeroResult { public SearchHeroResult(global::System.Collections.Generic.IReadOnlyList? search) @@ -176,7 +178,8 @@ public SearchHeroResult(global::System.Collections.Generic.IReadOnlyList, ISearchHero_Search_Starship { public SearchHero_Search_Starship() @@ -233,7 +236,8 @@ public SearchHero_Search_Starship() } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Human : global::System.IEquatable, ISearchHero_Search_Human { public SearchHero_Search_Human(global::System.String name, global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsUnionList.ISearchHero_Search_Friends? friends) @@ -302,7 +306,8 @@ public SearchHero_Search_Human(global::System.String name, global::StrawberrySha } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Droid : global::System.IEquatable, ISearchHero_Search_Droid { public SearchHero_Search_Droid(global::System.String name) @@ -363,10 +368,11 @@ public SearchHero_Search_Droid(global::System.String name) } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Friends_FriendsConnection : global::System.IEquatable, ISearchHero_Search_Friends_FriendsConnection { public SearchHero_Search_Friends_FriendsConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -440,7 +446,8 @@ public SearchHero_Search_Friends_FriendsConnection(global::System.Collections.Ge } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Friends_Nodes_Droid : global::System.IEquatable, ISearchHero_Search_Friends_Nodes_Droid { public SearchHero_Search_Friends_Nodes_Droid(global::System.String name) @@ -501,7 +508,8 @@ public SearchHero_Search_Friends_Nodes_Droid(global::System.String name) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Friends_Nodes_Human : global::System.IEquatable, ISearchHero_Search_Friends_Nodes_Human { public SearchHero_Search_Friends_Nodes_Human(global::System.String name) @@ -562,23 +570,27 @@ public SearchHero_Search_Friends_Nodes_Human(global::System.String name) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHeroResult { public global::System.Collections.Generic.IReadOnlyList? Search { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Starship : ISearchHero_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Human : ISearchHero_Search { public global::System.String Name { get; } @@ -586,16 +598,18 @@ public partial interface ISearchHero_Search_Human : ISearchHero_Search public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsUnionList.ISearchHero_Search_Friends? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Droid : ISearchHero_Search { public global::System.String Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Friends { /// @@ -604,30 +618,35 @@ public partial interface ISearchHero_Search_Friends public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Friends_FriendsConnection : ISearchHero_Search_Friends { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Friends_Nodes { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Friends_Nodes_Droid : ISearchHero_Search_Friends_Nodes { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Friends_Nodes_Human : ISearchHero_Search_Friends_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -666,7 +685,7 @@ public partial interface ISearchHero_Search_Friends_Nodes_Human : ISearchHero_Se /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroQueryDocument : global::StrawberryShake.IDocument { private SearchHeroQueryDocument() @@ -687,6 +706,7 @@ private SearchHeroQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -725,7 +745,7 @@ private SearchHeroQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsUnionList.ISearchHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -763,6 +783,7 @@ public SearchHeroQuery(global::StrawberryShake.IOperationExecutor /// Represents the operation service of the SearchHero GraphQL operation /// @@ -801,17 +822,18 @@ public SearchHeroQuery(global::StrawberryShake.IOperationExecutor /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the StarWarsUnionListClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsUnionListClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsUnionList.IStarWarsUnionListClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsUnionList.ISearchHeroQuery _searchHero; @@ -824,10 +846,11 @@ public StarWarsUnionListClient(global::StrawberryShake.CodeGeneration.CSharp.Int public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsUnionList.ISearchHeroQuery SearchHero => _searchHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the StarWarsUnionListClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStarWarsUnionListClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsUnionList.ISearchHeroQuery SearchHero { get; } @@ -836,11 +859,13 @@ public partial interface IStarWarsUnionListClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsUnionList.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class StarshipEntity { } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -855,6 +880,7 @@ public partial class HumanEntity public global::StrawberryShake.CodeGeneration.CSharp.Integration.StarWarsUnionList.State.FriendsConnectionData? Friends { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -866,7 +892,8 @@ public partial class DroidEntity public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -944,7 +971,8 @@ public SearchHeroResult Create(global::StrawberryShake.IOperationResultDataInfo } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -966,7 +994,8 @@ public SearchHeroResultInfo(global::System.Collections.Generic.IReadOnlyList { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1178,6 +1207,7 @@ public SearchHeroBuilder(global::StrawberryShake.IEntityStore entityStore, globa } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FriendsConnectionData @@ -1194,7 +1224,8 @@ public partial class FriendsConnectionData public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_StarshipFromStarshipEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1214,7 +1245,8 @@ public SearchHero_Search_Starship Map(global::StrawberryShake.CodeGeneration.CSh } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1294,7 +1326,8 @@ public SearchHero_Search_Human Map(global::StrawberryShake.CodeGeneration.CSharp } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1314,7 +1347,8 @@ public SearchHero_Search_Droid Map(global::StrawberryShake.CodeGeneration.CSharp } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Friends_Nodes_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1334,7 +1368,8 @@ public SearchHero_Search_Friends_Nodes_Droid Map(global::StrawberryShake.CodeGen } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Friends_Nodes_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1354,7 +1389,8 @@ public SearchHero_Search_Friends_Nodes_Human Map(global::StrawberryShake.CodeGen } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsUnionListClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1432,7 +1468,8 @@ public partial class StarWarsUnionListClientEntityIdFactory : global::Strawberry } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StarWarsUnionListClientStoreAccessor : global::StrawberryShake.StoreAccessor { public StarWarsUnionListClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalarTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalarTest.Client.cs index c6bcea6eb01..fad4bb5a763 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalarTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalarTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class UploadScalarClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddUploadScalarClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -104,7 +105,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestUploadResult : global::System.IEquatable, ITestUploadResult { public TestUploadResult(global::System.String? upload) @@ -169,13 +171,15 @@ public TestUploadResult(global::System.String? upload) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestUploadResult { public global::System.String? Upload { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _barInputFormatter = default !; @@ -221,6 +225,7 @@ public void Initialize(global::StrawberryShake.Serialization.ISerializerResolver } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class TestInput : global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.State.ITestInputInfo, global::System.IEquatable { @@ -293,7 +298,8 @@ public partial class TestInput : global::StrawberryShake.CodeGeneration.CSharp.I global::System.Boolean global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.State.ITestInputInfo.IsBarSet => _set_bar; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BarInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _bazInputFormatter = default !; @@ -339,6 +345,7 @@ public void Initialize(global::StrawberryShake.Serialization.ISerializerResolver } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BarInput : global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.State.IBarInputInfo, global::System.IEquatable { @@ -411,7 +418,8 @@ public partial class BarInput : global::StrawberryShake.CodeGeneration.CSharp.In global::System.Boolean global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.State.IBarInputInfo.IsBazSet => _set_baz; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BazInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _uploadFormatter = default !; @@ -457,6 +465,7 @@ public void Initialize(global::StrawberryShake.Serialization.ISerializerResolver } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BazInput : global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.State.IBazInputInfo, global::System.IEquatable { @@ -529,6 +538,7 @@ public partial class BazInput : global::StrawberryShake.CodeGeneration.CSharp.In global::System.Boolean global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.State.IBazInputInfo.IsFileSet => _set_file; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the TestUpload GraphQL operation /// @@ -537,7 +547,7 @@ public partial class BazInput : global::StrawberryShake.CodeGeneration.CSharp.In /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestUploadQueryDocument : global::StrawberryShake.IDocument { private TestUploadQueryDocument() @@ -558,6 +568,7 @@ private TestUploadQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the TestUpload GraphQL operation /// @@ -566,7 +577,7 @@ private TestUploadQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestUploadQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.ITestUploadQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -901,6 +912,7 @@ private void MapFilesFromArgumentObjectNested(global::System.String path, global } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the TestUpload GraphQL operation /// @@ -909,17 +921,18 @@ private void MapFilesFromArgumentObjectNested(global::System.String path, global /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestUploadQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.String? nonUpload, global::StrawberryShake.Upload? single, global::System.Collections.Generic.IReadOnlyList? list, global::System.Collections.Generic.IReadOnlyList?>? nested, global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.TestInput? @object, global::System.Collections.Generic.IReadOnlyList? objectList, global::System.Collections.Generic.IReadOnlyList?>? objectNested, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.String? nonUpload, global::StrawberryShake.Upload? single, global::System.Collections.Generic.IReadOnlyList? list, global::System.Collections.Generic.IReadOnlyList?>? nested, global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.TestInput? @object, global::System.Collections.Generic.IReadOnlyList? objectList, global::System.Collections.Generic.IReadOnlyList?>? objectNested, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the UploadScalarClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UploadScalarClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.IUploadScalarClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.ITestUploadQuery _testUpload; @@ -932,10 +945,11 @@ public UploadScalarClient(global::StrawberryShake.CodeGeneration.CSharp.Integrat public global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.ITestUploadQuery TestUpload => _testUpload; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the UploadScalarClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IUploadScalarClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.ITestUploadQuery TestUpload { get; } @@ -944,7 +958,8 @@ public partial interface IUploadScalarClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestUploadResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -975,7 +990,8 @@ public TestUploadResult Create(global::StrawberryShake.IOperationResultDataInfo } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestUploadResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -997,25 +1013,29 @@ public TestUploadResultInfo(global::System.String? upload, global::System.Collec } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface ITestInputInfo { global::System.Boolean IsBarSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBarInputInfo { global::System.Boolean IsBazSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBazInputInfo { global::System.Boolean IsFileSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestUploadBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1060,7 +1080,8 @@ public TestUploadBuilder(global::StrawberryShake.IEntityStore entityStore, globa } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UploadScalarClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1081,7 +1102,8 @@ public partial class UploadScalarClientEntityIdFactory : global::StrawberryShake } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UploadScalarClientStoreAccessor : global::StrawberryShake.StoreAccessor { public UploadScalarClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalar_InMemoryTest.Client.cs b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalar_InMemoryTest.Client.cs index 33ad48235c7..2babe1bfe28 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalar_InMemoryTest.Client.cs +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/UploadScalar_InMemoryTest.Client.cs @@ -16,7 +16,8 @@ namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class UploadScalar_InMemoryClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddUploadScalar_InMemoryClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -104,7 +105,8 @@ public void Dispose() namespace StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestUploadResult : global::System.IEquatable, ITestUploadResult { public TestUploadResult(global::System.String? upload) @@ -169,13 +171,15 @@ public TestUploadResult(global::System.String? upload) } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestUploadResult { public global::System.String? Upload { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _barInputFormatter = default !; @@ -221,6 +225,7 @@ public void Initialize(global::StrawberryShake.Serialization.ISerializerResolver } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class TestInput : global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.State.ITestInputInfo, global::System.IEquatable { @@ -293,7 +298,8 @@ public partial class TestInput : global::StrawberryShake.CodeGeneration.CSharp.I global::System.Boolean global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.State.ITestInputInfo.IsBarSet => _set_bar; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BarInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _bazInputFormatter = default !; @@ -339,6 +345,7 @@ public void Initialize(global::StrawberryShake.Serialization.ISerializerResolver } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BarInput : global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.State.IBarInputInfo, global::System.IEquatable { @@ -411,7 +418,8 @@ public partial class BarInput : global::StrawberryShake.CodeGeneration.CSharp.In global::System.Boolean global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.State.IBarInputInfo.IsBazSet => _set_baz; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BazInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _uploadFormatter = default !; @@ -457,6 +465,7 @@ public void Initialize(global::StrawberryShake.Serialization.ISerializerResolver } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BazInput : global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.State.IBazInputInfo, global::System.IEquatable { @@ -529,6 +538,7 @@ public partial class BazInput : global::StrawberryShake.CodeGeneration.CSharp.In global::System.Boolean global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.State.IBazInputInfo.IsFileSet => _set_file; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the TestUpload GraphQL operation /// @@ -537,7 +547,7 @@ public partial class BazInput : global::StrawberryShake.CodeGeneration.CSharp.In /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestUploadQueryDocument : global::StrawberryShake.IDocument { private TestUploadQueryDocument() @@ -558,6 +568,7 @@ private TestUploadQueryDocument() } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the TestUpload GraphQL operation /// @@ -566,7 +577,7 @@ private TestUploadQueryDocument() /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestUploadQuery : global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.ITestUploadQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -901,6 +912,7 @@ private void MapFilesFromArgumentObjectNested(global::System.String path, global } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the TestUpload GraphQL operation /// @@ -909,17 +921,18 @@ private void MapFilesFromArgumentObjectNested(global::System.String path, global /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestUploadQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.String? nonUpload, global::StrawberryShake.Upload? single, global::System.Collections.Generic.IReadOnlyList? list, global::System.Collections.Generic.IReadOnlyList?>? nested, global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.TestInput? @object, global::System.Collections.Generic.IReadOnlyList? objectList, global::System.Collections.Generic.IReadOnlyList?>? objectNested, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.String? nonUpload, global::StrawberryShake.Upload? single, global::System.Collections.Generic.IReadOnlyList? list, global::System.Collections.Generic.IReadOnlyList?>? nested, global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.TestInput? @object, global::System.Collections.Generic.IReadOnlyList? objectList, global::System.Collections.Generic.IReadOnlyList?>? objectNested, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the UploadScalar_InMemoryClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UploadScalar_InMemoryClient : global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.IUploadScalar_InMemoryClient { private readonly global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.ITestUploadQuery _testUpload; @@ -932,10 +945,11 @@ public UploadScalar_InMemoryClient(global::StrawberryShake.CodeGeneration.CSharp public global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.ITestUploadQuery TestUpload => _testUpload; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the UploadScalar_InMemoryClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IUploadScalar_InMemoryClient { global::StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.ITestUploadQuery TestUpload { get; } @@ -944,7 +958,8 @@ public partial interface IUploadScalar_InMemoryClient namespace StrawberryShake.CodeGeneration.CSharp.Integration.UploadScalar_InMemory.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestUploadResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -975,7 +990,8 @@ public TestUploadResult Create(global::StrawberryShake.IOperationResultDataInfo } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestUploadResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -997,25 +1013,29 @@ public TestUploadResultInfo(global::System.String? upload, global::System.Collec } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface ITestInputInfo { global::System.Boolean IsBarSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBarInputInfo { global::System.Boolean IsBazSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBazInputInfo { global::System.Boolean IsFileSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestUploadBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1060,7 +1080,8 @@ public TestUploadBuilder(global::StrawberryShake.IEntityStore entityStore, globa } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UploadScalar_InMemoryClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1081,7 +1102,8 @@ public partial class UploadScalar_InMemoryClientEntityIdFactory : global::Strawb } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UploadScalar_InMemoryClientStoreAccessor : global::StrawberryShake.StoreAccessor { public UploadScalar_InMemoryClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/__snapshots__/StarWarsIntrospectionTest.Execute_StarWarsIntrospection_Test.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/__snapshots__/StarWarsIntrospectionTest.Execute_StarWarsIntrospection_Test.snap index 46b4473d304..95806c93276 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/__snapshots__/StarWarsIntrospectionTest.Execute_StarWarsIntrospection_Test.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/Integration/__snapshots__/StarWarsIntrospectionTest.Execute_StarWarsIntrospection_Test.snap @@ -2366,25 +2366,6 @@ "OnFragment": true, "OnField": true }, - { - "Name": "deprecated", - "Description": "The @deprecated directive is used within the type system definition language to indicate deprecated portions of a GraphQL service’s schema,such as deprecated fields on a type or deprecated enum values.", - "Args": [ - { - "Name": "reason", - "Description": "Deprecations include a reason for why it is deprecated, which is formatted using Markdown syntax (as specified by CommonMark).", - "Type": { - "Kind": "Scalar", - "Name": "String", - "OfType": null - }, - "DefaultValue": "\"No longer supported.\"" - } - ], - "OnOperation": false, - "OnFragment": false, - "OnField": false - }, { "Name": "export", "Description": null, @@ -2403,29 +2384,6 @@ "OnOperation": false, "OnFragment": false, "OnField": true - }, - { - "Name": "tag", - "Description": "The @tag directive is used to apply arbitrary string\nmetadata to a schema location. Custom tooling can use\nthis metadata during any step of the schema delivery flow,\nincluding composition, static analysis, and documentation.\n \n\ninterface Book {\n id: ID! @tag(name: \"your-value\")\n title: String!\n author: String!\n}", - "Args": [ - { - "Name": "name", - "Description": "The name of the tag.", - "Type": { - "Kind": "NonNull", - "Name": null, - "OfType": { - "Kind": "Scalar", - "Name": "String", - "OfType": null - } - }, - "DefaultValue": null - } - ], - "OnOperation": false, - "OnFragment": false, - "OnField": false } ] } @@ -6556,34 +6514,6 @@ "OnFragment": true, "OnField": true }, - { - "__typename": "__Directive", - "Name": "deprecated", - "Description": "The @deprecated directive is used within the type system definition language to indicate deprecated portions of a GraphQL service’s schema,such as deprecated fields on a type or deprecated enum values.", - "Args": [ - { - "__typename": "__InputValue", - "Name": "reason", - "Description": "Deprecations include a reason for why it is deprecated, which is formatted using Markdown syntax (as specified by CommonMark).", - "Type": { - "__typename": "__Type", - "Name": "String", - "Kind": "Scalar", - "Description": null, - "Fields": null, - "InputFields": null, - "Interfaces": null, - "EnumValues": null, - "PossibleTypes": null, - "OfType": null - }, - "DefaultValue": "\"No longer supported.\"" - } - ], - "OnOperation": false, - "OnFragment": false, - "OnField": false - }, { "__typename": "__Directive", "Name": "export", @@ -6611,45 +6541,6 @@ "OnOperation": false, "OnFragment": false, "OnField": true - }, - { - "__typename": "__Directive", - "Name": "tag", - "Description": "The @tag directive is used to apply arbitrary string\nmetadata to a schema location. Custom tooling can use\nthis metadata during any step of the schema delivery flow,\nincluding composition, static analysis, and documentation.\n \n\ninterface Book {\n id: ID! @tag(name: \"your-value\")\n title: String!\n author: String!\n}", - "Args": [ - { - "__typename": "__InputValue", - "Name": "name", - "Description": "The name of the tag.", - "Type": { - "__typename": "__Type", - "Name": null, - "Kind": "NonNull", - "Description": null, - "Fields": null, - "InputFields": null, - "Interfaces": null, - "EnumValues": null, - "PossibleTypes": null, - "OfType": { - "__typename": "__Type", - "Name": "String", - "Kind": "Scalar", - "Description": null, - "Fields": null, - "InputFields": null, - "Interfaces": null, - "EnumValues": null, - "PossibleTypes": null, - "OfType": null - } - }, - "DefaultValue": null - } - ], - "OnOperation": false, - "OnFragment": false, - "OnField": false } ] }, diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Combined.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Combined.snap index 9451a2d042e..aa481dcb02f 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Combined.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Combined.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name) @@ -142,24 +144,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResult : global::System.IEquatable, IOnPersonResult { public OnPersonResult(global::Foo.Bar.IOnPerson_OnPerson? onPerson) @@ -224,7 +230,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPerson_OnPerson_Person : global::System.IEquatable, IOnPerson_OnPerson_Person { public OnPerson_OnPerson_Person(global::System.String name) @@ -285,24 +292,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPersonResult { public global::Foo.Bar.IOnPerson_OnPerson? OnPerson { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPerson_OnPerson { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPerson_OnPerson_Person : IOnPerson_OnPerson { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResult : global::System.IEquatable, ICreatePersonResult { public CreatePersonResult(global::Foo.Bar.ICreatePerson_CreatePerson? createPerson) @@ -367,7 +378,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePerson_CreatePerson_Person : global::System.IEquatable, ICreatePerson_CreatePerson_Person { public CreatePerson_CreatePerson_Person(global::System.String name) @@ -428,23 +440,27 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePersonResult { public global::Foo.Bar.ICreatePerson_CreatePerson? CreatePerson { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePerson_CreatePerson { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePerson_CreatePerson_Person : ICreatePerson_CreatePerson { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -459,7 +475,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -480,6 +496,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -494,7 +511,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -532,6 +549,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -546,13 +564,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -567,7 +586,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonSubscriptionDocument : global::StrawberryShake.IDocument { private OnPersonSubscriptionDocument() @@ -588,6 +607,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -602,7 +622,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonSubscription : global::Foo.Bar.IOnPersonSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -634,6 +654,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -648,12 +669,13 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPersonSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -668,7 +690,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonMutationDocument : global::StrawberryShake.IDocument { private CreatePersonMutationDocument() @@ -689,6 +711,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -703,7 +726,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonMutation : global::Foo.Bar.ICreatePersonMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -741,6 +764,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -755,17 +779,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePersonMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -784,10 +809,11 @@ namespace Foo.Bar public global::Foo.Bar.ICreatePersonMutation CreatePerson => _createPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -800,6 +826,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity { @@ -811,7 +838,8 @@ namespace Foo.Bar.State public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -859,7 +887,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -881,7 +910,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -929,7 +959,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -951,7 +982,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -999,7 +1031,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1021,7 +1054,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1097,7 +1131,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1173,7 +1208,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1249,7 +1285,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1269,7 +1306,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPerson_OnPerson_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1289,7 +1327,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePerson_CreatePerson_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1309,7 +1348,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1349,7 +1389,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1360,7 +1401,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_DifferentTransportMethods.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_DifferentTransportMethods.snap index b6b8180c7db..43688793dbf 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_DifferentTransportMethods.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_DifferentTransportMethods.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name) @@ -142,24 +144,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResult : global::System.IEquatable, IOnPersonResult { public OnPersonResult(global::Foo.Bar.IOnPerson_OnPerson? onPerson) @@ -224,7 +230,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPerson_OnPerson_Person : global::System.IEquatable, IOnPerson_OnPerson_Person { public OnPerson_OnPerson_Person(global::System.String name) @@ -285,24 +292,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPersonResult { public global::Foo.Bar.IOnPerson_OnPerson? OnPerson { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPerson_OnPerson { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPerson_OnPerson_Person : IOnPerson_OnPerson { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResult : global::System.IEquatable, ICreatePersonResult { public CreatePersonResult(global::Foo.Bar.ICreatePerson_CreatePerson? createPerson) @@ -367,7 +378,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePerson_CreatePerson_Person : global::System.IEquatable, ICreatePerson_CreatePerson_Person { public CreatePerson_CreatePerson_Person(global::System.String name) @@ -428,23 +440,27 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePersonResult { public global::Foo.Bar.ICreatePerson_CreatePerson? CreatePerson { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePerson_CreatePerson { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePerson_CreatePerson_Person : ICreatePerson_CreatePerson { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -459,7 +475,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -480,6 +496,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -494,7 +511,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -532,6 +549,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -546,13 +564,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -567,7 +586,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonSubscriptionDocument : global::StrawberryShake.IDocument { private OnPersonSubscriptionDocument() @@ -588,6 +607,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -602,7 +622,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonSubscription : global::Foo.Bar.IOnPersonSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -634,6 +654,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -648,12 +669,13 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPersonSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -668,7 +690,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonMutationDocument : global::StrawberryShake.IDocument { private CreatePersonMutationDocument() @@ -689,6 +711,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -703,7 +726,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonMutation : global::Foo.Bar.ICreatePersonMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -741,6 +764,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -755,17 +779,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePersonMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -784,10 +809,11 @@ namespace Foo.Bar public global::Foo.Bar.ICreatePersonMutation CreatePerson => _createPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -800,6 +826,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity { @@ -811,7 +838,8 @@ namespace Foo.Bar.State public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -859,7 +887,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -881,7 +910,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -929,7 +959,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -951,7 +982,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -999,7 +1031,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1021,7 +1054,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1097,7 +1131,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1173,7 +1208,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1249,7 +1285,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1269,7 +1306,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPerson_OnPerson_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1289,7 +1327,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePerson_CreatePerson_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1309,7 +1348,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1349,7 +1389,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1360,7 +1401,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_InMemory.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_InMemory.snap index adafb1a626a..3d759f3b3c3 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_InMemory.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_InMemory.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name) @@ -142,24 +144,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResult : global::System.IEquatable, IOnPersonResult { public OnPersonResult(global::Foo.Bar.IOnPerson_OnPerson? onPerson) @@ -224,7 +230,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPerson_OnPerson_Person : global::System.IEquatable, IOnPerson_OnPerson_Person { public OnPerson_OnPerson_Person(global::System.String name) @@ -285,24 +292,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPersonResult { public global::Foo.Bar.IOnPerson_OnPerson? OnPerson { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPerson_OnPerson { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPerson_OnPerson_Person : IOnPerson_OnPerson { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResult : global::System.IEquatable, ICreatePersonResult { public CreatePersonResult(global::Foo.Bar.ICreatePerson_CreatePerson? createPerson) @@ -367,7 +378,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePerson_CreatePerson_Person : global::System.IEquatable, ICreatePerson_CreatePerson_Person { public CreatePerson_CreatePerson_Person(global::System.String name) @@ -428,23 +440,27 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePersonResult { public global::Foo.Bar.ICreatePerson_CreatePerson? CreatePerson { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePerson_CreatePerson { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePerson_CreatePerson_Person : ICreatePerson_CreatePerson { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -459,7 +475,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -480,6 +496,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -494,7 +511,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -532,6 +549,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -546,13 +564,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -567,7 +586,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonSubscriptionDocument : global::StrawberryShake.IDocument { private OnPersonSubscriptionDocument() @@ -588,6 +607,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -602,7 +622,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonSubscription : global::Foo.Bar.IOnPersonSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -634,6 +654,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -648,12 +669,13 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPersonSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -668,7 +690,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonMutationDocument : global::StrawberryShake.IDocument { private CreatePersonMutationDocument() @@ -689,6 +711,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -703,7 +726,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonMutation : global::Foo.Bar.ICreatePersonMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -741,6 +764,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -755,17 +779,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePersonMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -784,10 +809,11 @@ namespace Foo.Bar public global::Foo.Bar.ICreatePersonMutation CreatePerson => _createPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -800,6 +826,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity { @@ -811,7 +838,8 @@ namespace Foo.Bar.State public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -859,7 +887,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -881,7 +910,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -929,7 +959,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -951,7 +982,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -999,7 +1031,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1021,7 +1054,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1097,7 +1131,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1173,7 +1208,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1249,7 +1285,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1269,7 +1306,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPerson_OnPerson_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1289,7 +1327,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePerson_CreatePerson_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1309,7 +1348,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1349,7 +1389,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1360,7 +1401,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_MultiProfile.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_MultiProfile.snap index bd84a592847..b3e74114be5 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_MultiProfile.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_MultiProfile.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name) @@ -142,24 +144,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResult : global::System.IEquatable, IOnPersonResult { public OnPersonResult(global::Foo.Bar.IOnPerson_OnPerson? onPerson) @@ -224,7 +230,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPerson_OnPerson_Person : global::System.IEquatable, IOnPerson_OnPerson_Person { public OnPerson_OnPerson_Person(global::System.String name) @@ -285,24 +292,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPersonResult { public global::Foo.Bar.IOnPerson_OnPerson? OnPerson { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPerson_OnPerson { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPerson_OnPerson_Person : IOnPerson_OnPerson { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResult : global::System.IEquatable, ICreatePersonResult { public CreatePersonResult(global::Foo.Bar.ICreatePerson_CreatePerson? createPerson) @@ -367,7 +378,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePerson_CreatePerson_Person : global::System.IEquatable, ICreatePerson_CreatePerson_Person { public CreatePerson_CreatePerson_Person(global::System.String name) @@ -428,23 +440,27 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePersonResult { public global::Foo.Bar.ICreatePerson_CreatePerson? CreatePerson { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePerson_CreatePerson { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePerson_CreatePerson_Person : ICreatePerson_CreatePerson { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -459,7 +475,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -480,6 +496,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -494,7 +511,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -532,6 +549,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -546,13 +564,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -567,7 +586,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonSubscriptionDocument : global::StrawberryShake.IDocument { private OnPersonSubscriptionDocument() @@ -588,6 +607,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -602,7 +622,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonSubscription : global::Foo.Bar.IOnPersonSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -634,6 +654,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -648,12 +669,13 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPersonSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -668,7 +690,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonMutationDocument : global::StrawberryShake.IDocument { private CreatePersonMutationDocument() @@ -689,6 +711,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -703,7 +726,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonMutation : global::Foo.Bar.ICreatePersonMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -741,6 +764,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -755,17 +779,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePersonMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -784,10 +809,11 @@ namespace Foo.Bar public global::Foo.Bar.ICreatePersonMutation CreatePerson => _createPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -797,7 +823,8 @@ namespace Foo.Bar global::Foo.Bar.ICreatePersonMutation CreatePerson { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.TransportProfileEnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum FooClientProfileKind { Default, @@ -807,6 +834,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity { @@ -818,7 +846,8 @@ namespace Foo.Bar.State public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -866,7 +895,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -888,7 +918,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -936,7 +967,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -958,7 +990,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1006,7 +1039,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1028,7 +1062,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1104,7 +1139,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1180,7 +1216,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1256,7 +1293,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1276,7 +1314,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPerson_OnPerson_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1296,7 +1335,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePerson_CreatePerson_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1316,7 +1356,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1356,7 +1397,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1367,7 +1409,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly, global::Foo.Bar.FooClientProfileKind profile = global::Foo.Bar.FooClientProfileKind.Default) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Mutation.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Mutation.snap index c345939d38a..d0f0c4eff52 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Mutation.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Mutation.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResult : global::System.IEquatable, ICreatePersonResult { public CreatePersonResult(global::Foo.Bar.ICreatePerson_CreatePerson? createPerson) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePerson_CreatePerson_Person : global::System.IEquatable, ICreatePerson_CreatePerson_Person { public CreatePerson_CreatePerson_Person(global::System.String name) @@ -142,23 +144,27 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePersonResult { public global::Foo.Bar.ICreatePerson_CreatePerson? CreatePerson { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePerson_CreatePerson { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePerson_CreatePerson_Person : ICreatePerson_CreatePerson { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -173,7 +179,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonMutationDocument : global::StrawberryShake.IDocument { private CreatePersonMutationDocument() @@ -194,6 +200,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -208,7 +215,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonMutation : global::Foo.Bar.ICreatePersonMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -246,6 +253,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the CreatePerson GraphQL operation /// @@ -260,17 +268,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreatePersonMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ICreatePersonMutation _createPerson; @@ -283,10 +292,11 @@ namespace Foo.Bar public global::Foo.Bar.ICreatePersonMutation CreatePerson => _createPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ICreatePersonMutation CreatePerson { get; } @@ -295,6 +305,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity { @@ -306,7 +317,8 @@ namespace Foo.Bar.State public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -354,7 +366,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -376,7 +389,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -452,7 +466,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreatePerson_CreatePerson_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -472,7 +487,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -512,7 +528,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -523,7 +540,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Query.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Query.snap index e8c798f03c1..201cb556eda 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Query.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Query.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name) @@ -142,23 +144,27 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -173,7 +179,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -194,6 +200,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -208,7 +215,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -246,6 +253,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -260,17 +268,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -283,10 +292,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -295,6 +305,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity { @@ -306,7 +317,8 @@ namespace Foo.Bar.State public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -354,7 +366,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -376,7 +389,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -452,7 +466,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -472,7 +487,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -512,7 +528,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -523,7 +540,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Subscription.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Subscription.snap index 111a13dd8fc..bb5a58f0d1a 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Subscription.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/DependencyInjectionGeneratorTests.Default_Subscription.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResult : global::System.IEquatable, IOnPersonResult { public OnPersonResult(global::Foo.Bar.IOnPerson_OnPerson? onPerson) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPerson_OnPerson_Person : global::System.IEquatable, IOnPerson_OnPerson_Person { public OnPerson_OnPerson_Person(global::System.String name) @@ -142,23 +144,27 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPersonResult { public global::Foo.Bar.IOnPerson_OnPerson? OnPerson { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPerson_OnPerson { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPerson_OnPerson_Person : IOnPerson_OnPerson { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -173,7 +179,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonSubscriptionDocument : global::StrawberryShake.IDocument { private OnPersonSubscriptionDocument() @@ -194,6 +200,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -208,7 +215,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonSubscription : global::Foo.Bar.IOnPersonSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -240,6 +247,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the OnPerson GraphQL operation /// @@ -254,16 +262,17 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnPersonSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IOnPersonSubscription _onPerson; @@ -276,10 +285,11 @@ namespace Foo.Bar public global::Foo.Bar.IOnPersonSubscription OnPerson => _onPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IOnPersonSubscription OnPerson { get; } @@ -288,6 +298,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity { @@ -299,7 +310,8 @@ namespace Foo.Bar.State public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -347,7 +359,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -369,7 +382,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -445,7 +459,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnPerson_OnPerson_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -465,7 +480,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -505,7 +521,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -516,7 +533,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataInEntity_UnionDataTypes.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataInEntity_UnionDataTypes.snap index ad689173617..79cf0642696 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataInEntity_UnionDataTypes.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataInEntity_UnionDataTypes.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2Result : global::System.IEquatable, IGetStore2Result { public GetStore2Result(global::Foo.Bar.IGetStore2_SearchableStore searchableStore) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2_SearchableStore_SearchableStore : global::System.IEquatable, IGetStore2_SearchableStore_SearchableStore { public GetStore2_SearchableStore_SearchableStore(global::System.String id, global::System.Collections.Generic.IReadOnlyList? books, global::Foo.Bar.IGetStore2_SearchableStore_Search? search) @@ -160,7 +162,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2_SearchableStore_Books_Book : global::System.IEquatable, IGetStore2_SearchableStore_Books_Book { public GetStore2_SearchableStore_Books_Book(global::System.String isbn, global::System.String title) @@ -225,7 +228,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2_SearchableStore_Search_Author : global::System.IEquatable, IGetStore2_SearchableStore_Search_Author { public GetStore2_SearchableStore_Search_Author() @@ -282,7 +286,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2_SearchableStore_Search_Book : global::System.IEquatable, IGetStore2_SearchableStore_Search_Book { public GetStore2_SearchableStore_Search_Book(global::System.String title, global::System.String isbn) @@ -347,13 +352,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2Result { public global::Foo.Bar.IGetStore2_SearchableStore SearchableStore { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore { public global::System.String Id { get; } @@ -363,12 +370,14 @@ namespace Foo.Bar public global::Foo.Bar.IGetStore2_SearchableStore_Search? Search { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore_SearchableStore : IGetStore2_SearchableStore { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore_Books { public global::System.String Isbn { get; } @@ -376,22 +385,26 @@ namespace Foo.Bar public global::System.String Title { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore_Books_Book : IGetStore2_SearchableStore_Books { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore_Search_Author : IGetStore2_SearchableStore_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore_Search_Book : IGetStore2_SearchableStore_Search { public global::System.String Title { get; } @@ -399,6 +412,7 @@ namespace Foo.Bar public global::System.String Isbn { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetStore2 GraphQL operation /// @@ -425,7 +439,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2QueryDocument : global::StrawberryShake.IDocument { private GetStore2QueryDocument() @@ -446,6 +460,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetStore2 GraphQL operation /// @@ -472,7 +487,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2Query : global::Foo.Bar.IGetStore2Query { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -510,6 +525,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetStore2 GraphQL operation /// @@ -536,17 +552,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2Query : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetStore2Query _getStore2; @@ -559,10 +576,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetStore2Query GetStore2 => _getStore2; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetStore2Query GetStore2 { get; } @@ -571,6 +589,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class SearchableStoreEntity { @@ -588,7 +607,8 @@ namespace Foo.Bar.State public global::Foo.Bar.State.ISearchResultData? Search { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2ResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -631,7 +651,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2ResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -653,7 +674,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2Builder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -797,18 +819,21 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ISearchResultData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IPrintData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BookData : ISearchResultData, IPrintData { @@ -826,6 +851,7 @@ namespace Foo.Bar.State public global::System.String? Title { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class AuthorData : ISearchResultData { @@ -837,7 +863,8 @@ namespace Foo.Bar.State public global::System.String __typename { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2_SearchableStore_SearchableStoreFromSearchableStoreEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -917,7 +944,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -957,7 +985,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -968,7 +997,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataInEntity_UnionDataTypes_With_Records.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataInEntity_UnionDataTypes_With_Records.snap index e09ebdda6a1..0aea7465f64 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataInEntity_UnionDataTypes_With_Records.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataInEntity_UnionDataTypes_With_Records.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2Result : global::System.IEquatable, IGetStore2Result { public GetStore2Result(global::Foo.Bar.IGetStore2_SearchableStore searchableStore) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2_SearchableStore_SearchableStore : global::System.IEquatable, IGetStore2_SearchableStore_SearchableStore { public GetStore2_SearchableStore_SearchableStore(global::System.String id, global::System.Collections.Generic.IReadOnlyList? books, global::Foo.Bar.IGetStore2_SearchableStore_Search? search) @@ -160,7 +162,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2_SearchableStore_Books_Book : global::System.IEquatable, IGetStore2_SearchableStore_Books_Book { public GetStore2_SearchableStore_Books_Book(global::System.String isbn, global::System.String title) @@ -225,7 +228,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2_SearchableStore_Search_Author : global::System.IEquatable, IGetStore2_SearchableStore_Search_Author { public GetStore2_SearchableStore_Search_Author() @@ -282,7 +286,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2_SearchableStore_Search_Book : global::System.IEquatable, IGetStore2_SearchableStore_Search_Book { public GetStore2_SearchableStore_Search_Book(global::System.String title, global::System.String isbn) @@ -347,13 +352,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2Result { public global::Foo.Bar.IGetStore2_SearchableStore SearchableStore { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore { public global::System.String Id { get; } @@ -363,12 +370,14 @@ namespace Foo.Bar public global::Foo.Bar.IGetStore2_SearchableStore_Search? Search { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore_SearchableStore : IGetStore2_SearchableStore { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore_Books { public global::System.String Isbn { get; } @@ -376,22 +385,26 @@ namespace Foo.Bar public global::System.String Title { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore_Books_Book : IGetStore2_SearchableStore_Books { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore_Search_Author : IGetStore2_SearchableStore_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2_SearchableStore_Search_Book : IGetStore2_SearchableStore_Search { public global::System.String Title { get; } @@ -399,6 +412,7 @@ namespace Foo.Bar public global::System.String Isbn { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetStore2 GraphQL operation /// @@ -425,7 +439,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2QueryDocument : global::StrawberryShake.IDocument { private GetStore2QueryDocument() @@ -446,6 +460,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetStore2 GraphQL operation /// @@ -472,7 +487,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2Query : global::Foo.Bar.IGetStore2Query { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -510,6 +525,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetStore2 GraphQL operation /// @@ -536,17 +552,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetStore2Query : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetStore2Query _getStore2; @@ -559,10 +576,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetStore2Query GetStore2 => _getStore2; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetStore2Query GetStore2 { get; } @@ -571,6 +589,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record SearchableStoreEntity { @@ -588,7 +607,8 @@ namespace Foo.Bar.State public global::Foo.Bar.State.ISearchResultData? Search { get; init; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2ResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -631,7 +651,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2ResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -653,7 +674,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2Builder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -797,18 +819,21 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ISearchResultData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IPrintData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record BookData : ISearchResultData, IPrintData { @@ -826,6 +851,7 @@ namespace Foo.Bar.State public global::System.String? Title { get; init; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record AuthorData : ISearchResultData { @@ -837,7 +863,8 @@ namespace Foo.Bar.State public global::System.String __typename { get; init; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetStore2_SearchableStore_SearchableStoreFromSearchableStoreEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -917,7 +944,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -957,7 +985,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -968,7 +997,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_InterfaceDataTypes.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_InterfaceDataTypes.snap index 84382270eb3..59bc26ccce6 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_InterfaceDataTypes.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_InterfaceDataTypes.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingResult : global::System.IEquatable, ISearchSomethingResult { public SearchSomethingResult(global::System.Collections.Generic.IReadOnlyList? prints) @@ -87,7 +88,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomething_Prints_Book : global::System.IEquatable, ISearchSomething_Prints_Book { public SearchSomething_Prints_Book(global::System.String isbn, global::System.String title) @@ -152,7 +154,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomething_Prints_Magazine : global::System.IEquatable, ISearchSomething_Prints_Magazine { public SearchSomething_Prints_Magazine(global::System.String isbn, global::System.String? coverImageUrl) @@ -221,30 +224,35 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomethingResult { public global::System.Collections.Generic.IReadOnlyList? Prints { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomething_Prints { public global::System.String Isbn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomething_Prints_Book : ISearchSomething_Prints { public global::System.String Title { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomething_Prints_Magazine : ISearchSomething_Prints { public global::System.String? CoverImageUrl { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SearchSomething GraphQL operation /// @@ -262,7 +270,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingQueryDocument : global::StrawberryShake.IDocument { private SearchSomethingQueryDocument() @@ -283,6 +291,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SearchSomething GraphQL operation /// @@ -300,7 +309,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingQuery : global::Foo.Bar.ISearchSomethingQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -338,6 +347,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the SearchSomething GraphQL operation /// @@ -355,17 +365,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomethingQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ISearchSomethingQuery _searchSomething; @@ -378,10 +389,11 @@ namespace Foo.Bar public global::Foo.Bar.ISearchSomethingQuery SearchSomething => _searchSomething; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ISearchSomethingQuery SearchSomething { get; } @@ -390,7 +402,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -461,7 +474,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -483,7 +497,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -588,18 +603,21 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ISearchResultData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IPrintData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BookData : ISearchResultData, IPrintData { @@ -617,6 +635,7 @@ namespace Foo.Bar.State public global::System.String? Title { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class MagazineData : IPrintData { @@ -634,7 +653,8 @@ namespace Foo.Bar.State public global::System.String? CoverImageUrl { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -655,7 +675,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -666,7 +687,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_InterfaceDataTypes_With_Records.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_InterfaceDataTypes_With_Records.snap index 28f1b55cabe..8e522b0b726 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_InterfaceDataTypes_With_Records.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_InterfaceDataTypes_With_Records.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingResult : global::System.IEquatable, ISearchSomethingResult { public SearchSomethingResult(global::System.Collections.Generic.IReadOnlyList? prints) @@ -87,7 +88,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomething_Prints_Book : global::System.IEquatable, ISearchSomething_Prints_Book { public SearchSomething_Prints_Book(global::System.String isbn, global::System.String title) @@ -152,7 +154,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomething_Prints_Magazine : global::System.IEquatable, ISearchSomething_Prints_Magazine { public SearchSomething_Prints_Magazine(global::System.String isbn, global::System.String? coverImageUrl) @@ -221,30 +224,35 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomethingResult { public global::System.Collections.Generic.IReadOnlyList? Prints { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomething_Prints { public global::System.String Isbn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomething_Prints_Book : ISearchSomething_Prints { public global::System.String Title { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomething_Prints_Magazine : ISearchSomething_Prints { public global::System.String? CoverImageUrl { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SearchSomething GraphQL operation /// @@ -262,7 +270,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingQueryDocument : global::StrawberryShake.IDocument { private SearchSomethingQueryDocument() @@ -283,6 +291,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SearchSomething GraphQL operation /// @@ -300,7 +309,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingQuery : global::Foo.Bar.ISearchSomethingQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -338,6 +347,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the SearchSomething GraphQL operation /// @@ -355,17 +365,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomethingQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ISearchSomethingQuery _searchSomething; @@ -378,10 +389,11 @@ namespace Foo.Bar public global::Foo.Bar.ISearchSomethingQuery SearchSomething => _searchSomething; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ISearchSomethingQuery SearchSomething { get; } @@ -390,7 +402,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -461,7 +474,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -483,7 +497,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -588,18 +603,21 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ISearchResultData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IPrintData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record BookData : ISearchResultData, IPrintData { @@ -617,6 +635,7 @@ namespace Foo.Bar.State public global::System.String? Title { get; init; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record MagazineData : IPrintData { @@ -634,7 +653,8 @@ namespace Foo.Bar.State public global::System.String? CoverImageUrl { get; init; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -655,7 +675,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -666,7 +687,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_UnionDataTypes.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_UnionDataTypes.snap index b680d083b2a..3fff2175e3d 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_UnionDataTypes.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_UnionDataTypes.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingResult : global::System.IEquatable, ISearchSomethingResult { public SearchSomethingResult(global::Foo.Bar.ISearchSomething_Search? search) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomething_Search_Author : global::System.IEquatable, ISearchSomething_Search_Author { public SearchSomething_Search_Author(global::System.String name) @@ -142,7 +144,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomething_Search_Book : global::System.IEquatable, ISearchSomething_Search_Book { public SearchSomething_Search_Book(global::System.String title) @@ -203,29 +206,34 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomethingResult { public global::Foo.Bar.ISearchSomething_Search? Search { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomething_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomething_Search_Author : ISearchSomething_Search { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomething_Search_Book : ISearchSomething_Search { public global::System.String Title { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SearchSomething GraphQL operation /// @@ -242,7 +250,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingQueryDocument : global::StrawberryShake.IDocument { private SearchSomethingQueryDocument() @@ -263,6 +271,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SearchSomething GraphQL operation /// @@ -279,7 +288,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingQuery : global::Foo.Bar.ISearchSomethingQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -317,6 +326,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the SearchSomething GraphQL operation /// @@ -333,17 +343,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomethingQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ISearchSomethingQuery _searchSomething; @@ -356,10 +367,11 @@ namespace Foo.Bar public global::Foo.Bar.ISearchSomethingQuery SearchSomething => _searchSomething; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ISearchSomethingQuery SearchSomething { get; } @@ -368,7 +380,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -423,7 +436,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -445,7 +459,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -514,12 +529,14 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ISearchResultData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class AuthorData : ISearchResultData { @@ -534,12 +551,14 @@ namespace Foo.Bar.State public global::System.String? Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IPrintData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BookData : ISearchResultData, IPrintData { @@ -554,7 +573,8 @@ namespace Foo.Bar.State public global::System.String? Title { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -575,7 +595,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -586,7 +607,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_UnionDataTypes_With_Records.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_UnionDataTypes_With_Records.snap index efeeb789b6b..780c7a34ae1 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_UnionDataTypes_With_Records.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_BookClient_DataOnly_UnionDataTypes_With_Records.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingResult : global::System.IEquatable, ISearchSomethingResult { public SearchSomethingResult(global::Foo.Bar.ISearchSomething_Search? search) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomething_Search_Author : global::System.IEquatable, ISearchSomething_Search_Author { public SearchSomething_Search_Author(global::System.String name) @@ -142,7 +144,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomething_Search_Book : global::System.IEquatable, ISearchSomething_Search_Book { public SearchSomething_Search_Book(global::System.String title) @@ -203,29 +206,34 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomethingResult { public global::Foo.Bar.ISearchSomething_Search? Search { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomething_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomething_Search_Author : ISearchSomething_Search { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomething_Search_Book : ISearchSomething_Search { public global::System.String Title { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SearchSomething GraphQL operation /// @@ -242,7 +250,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingQueryDocument : global::StrawberryShake.IDocument { private SearchSomethingQueryDocument() @@ -263,6 +271,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SearchSomething GraphQL operation /// @@ -279,7 +288,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingQuery : global::Foo.Bar.ISearchSomethingQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -317,6 +326,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the SearchSomething GraphQL operation /// @@ -333,17 +343,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchSomethingQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ISearchSomethingQuery _searchSomething; @@ -356,10 +367,11 @@ namespace Foo.Bar public global::Foo.Bar.ISearchSomethingQuery SearchSomething => _searchSomething; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ISearchSomethingQuery SearchSomething { get; } @@ -368,7 +380,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -423,7 +436,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -445,7 +459,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchSomethingBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -514,12 +529,14 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ISearchResultData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record AuthorData : ISearchResultData { @@ -534,12 +551,14 @@ namespace Foo.Bar.State public global::System.String? Name { get; init; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IPrintData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record BookData : ISearchResultData, IPrintData { @@ -554,7 +573,8 @@ namespace Foo.Bar.State public global::System.String? Title { get; init; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -575,7 +595,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -586,7 +607,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_ConnectionNotAnEntity.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_ConnectionNotAnEntity.snap index 6d136f4bb1c..64cc912d5ec 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_ConnectionNotAnEntity.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_ConnectionNotAnEntity.snap @@ -16,10 +16,11 @@ namespace Foo.Bar { + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResult : global::System.IEquatable, IGetPeopleResult { public GetPeopleResult(global::Foo.Bar.IGetPeople_People? people) @@ -87,10 +88,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_PersonConnection : global::System.IEquatable, IGetPeople_People_PersonConnection { public GetPeople_People_PersonConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -164,10 +166,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Person : global::System.IEquatable, IGetPeople_People_Nodes_Person { public GetPeople_People_Nodes_Person(global::System.String name, global::System.String email, global::System.Boolean isOnline) @@ -245,10 +248,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleResult { /// @@ -257,10 +261,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeople_People? People { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People { /// @@ -269,18 +274,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_PersonConnection : IGetPeople_People { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes { /// @@ -299,14 +306,16 @@ namespace Foo.Bar public global::System.Boolean IsOnline { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Person : IGetPeople_People_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -326,7 +335,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleQueryDocument : global::StrawberryShake.IDocument { private GetPeopleQueryDocument() @@ -347,6 +356,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -366,7 +376,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleQuery : global::Foo.Bar.IGetPeopleQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -404,6 +414,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -423,17 +434,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPeopleQuery _getPeople; @@ -446,10 +458,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeopleQuery GetPeople => _getPeople; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPeopleQuery GetPeople { get; } @@ -458,6 +471,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator ///Type person [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity @@ -479,7 +493,8 @@ namespace Foo.Bar.State public global::System.Boolean IsOnline { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -563,7 +578,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -588,7 +604,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -723,6 +740,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonConnectionData @@ -739,7 +757,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -759,7 +778,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -799,7 +819,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -810,7 +831,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_ConnectionNotAnEntity_With_Records.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_ConnectionNotAnEntity_With_Records.snap index 75e18b5df46..c9d0896c781 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_ConnectionNotAnEntity_With_Records.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_ConnectionNotAnEntity_With_Records.snap @@ -16,10 +16,11 @@ namespace Foo.Bar { + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResult : global::System.IEquatable, IGetPeopleResult { public GetPeopleResult(global::Foo.Bar.IGetPeople_People? people) @@ -87,10 +88,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_PersonConnection : global::System.IEquatable, IGetPeople_People_PersonConnection { public GetPeople_People_PersonConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -164,10 +166,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Person : global::System.IEquatable, IGetPeople_People_Nodes_Person { public GetPeople_People_Nodes_Person(global::System.String name, global::System.String email, global::System.Boolean isOnline) @@ -245,10 +248,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleResult { /// @@ -257,10 +261,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeople_People? People { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People { /// @@ -269,18 +274,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_PersonConnection : IGetPeople_People { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes { /// @@ -299,14 +306,16 @@ namespace Foo.Bar public global::System.Boolean IsOnline { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Person : IGetPeople_People_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -326,7 +335,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleQueryDocument : global::StrawberryShake.IDocument { private GetPeopleQueryDocument() @@ -347,6 +356,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -366,7 +376,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleQuery : global::Foo.Bar.IGetPeopleQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -404,6 +414,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -423,17 +434,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPeopleQuery _getPeople; @@ -446,10 +458,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeopleQuery GetPeople => _getPeople; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPeopleQuery GetPeople { get; } @@ -458,6 +471,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator ///Type person [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record PersonEntity @@ -479,7 +493,8 @@ namespace Foo.Bar.State public global::System.Boolean IsOnline { get; init; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -563,7 +578,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -588,7 +604,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -723,6 +740,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record PersonConnectionData @@ -739,7 +757,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Nodes { get; init; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -759,7 +778,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -799,7 +819,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -810,7 +831,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_MapperMapsEntityOnRootCorrectly.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_MapperMapsEntityOnRootCorrectly.snap index 300f2ea11ec..3c15f44ec0b 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_MapperMapsEntityOnRootCorrectly.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_MapperMapsEntityOnRootCorrectly.snap @@ -16,10 +16,11 @@ namespace Foo.Bar { + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResult : global::System.IEquatable, IGetPeopleResult { public GetPeopleResult(global::Foo.Bar.IGetPeople_People? people) @@ -87,10 +88,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_PersonConnection : global::System.IEquatable, IGetPeople_People_PersonConnection { public GetPeople_People_PersonConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -164,10 +166,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Person : global::System.IEquatable, IGetPeople_People_Nodes_Person { public GetPeople_People_Nodes_Person(global::System.String name, global::Foo.Bar.IGetPeople_People_Nodes_Messages? messages) @@ -242,10 +245,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Messages_MessageConnection : global::System.IEquatable, IGetPeople_People_Nodes_Messages_MessageConnection { public GetPeople_People_Nodes_Messages_MessageConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -319,10 +323,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Messages_Nodes_Message : global::System.IEquatable, IGetPeople_People_Nodes_Messages_Nodes_Message { public GetPeople_People_Nodes_Messages_Nodes_Message(global::Foo.Bar.IGetPeople_People_Nodes_Messages_Nodes_Sender sender, global::System.String text) @@ -393,10 +398,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Messages_Nodes_Sender_Person : global::System.IEquatable, IGetPeople_People_Nodes_Messages_Nodes_Sender_Person { public GetPeople_People_Nodes_Messages_Nodes_Sender_Person(global::System.String name) @@ -460,10 +466,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleResult { /// @@ -472,10 +479,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeople_People? People { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People { /// @@ -484,18 +492,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_PersonConnection : IGetPeople_People { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPerson { /// @@ -504,10 +514,11 @@ namespace Foo.Bar public global::System.String Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes : IPerson { /// @@ -516,18 +527,20 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeople_People_Nodes_Messages? Messages { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Person : IGetPeople_People_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Messages { /// @@ -536,18 +549,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Messages_MessageConnection : IGetPeople_People_Nodes_Messages { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IMessage { /// @@ -561,42 +576,47 @@ namespace Foo.Bar public global::System.String Text { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Messages_Nodes : IMessage { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Messages_Nodes_Message : IGetPeople_People_Nodes_Messages_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Messages_Nodes_Sender : IPerson { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Messages_Nodes_Sender_Person : IGetPeople_People_Nodes_Messages_Nodes_Sender { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type Mutation /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessageResult : global::System.IEquatable, IWriteMessageResult { public WriteMessageResult(global::Foo.Bar.IWriteMessage_SendMessage sendMessage) @@ -660,10 +680,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type SendMessagePayload /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessage_SendMessage_SendMessagePayload : global::System.IEquatable, IWriteMessage_SendMessage_SendMessagePayload { public WriteMessage_SendMessage_SendMessagePayload(global::Foo.Bar.IWriteMessage_SendMessage_Message message) @@ -727,10 +748,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessage_SendMessage_Message_Message : global::System.IEquatable, IWriteMessage_SendMessage_Message_Message { public WriteMessage_SendMessage_Message_Message(global::Foo.Bar.IGetPeople_People_Nodes_Messages_Nodes_Sender sender, global::System.String text) @@ -801,10 +823,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessage_SendMessage_Message_Sender_Person : global::System.IEquatable, IWriteMessage_SendMessage_Message_Sender_Person { public WriteMessage_SendMessage_Message_Sender_Person(global::System.String name) @@ -868,10 +891,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type Mutation /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessageResult { /// @@ -880,10 +904,11 @@ namespace Foo.Bar public global::Foo.Bar.IWriteMessage_SendMessage SendMessage { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type SendMessagePayload /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessage_SendMessage { /// @@ -892,46 +917,52 @@ namespace Foo.Bar public global::Foo.Bar.IWriteMessage_SendMessage_Message Message { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type SendMessagePayload /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessage_SendMessage_SendMessagePayload : IWriteMessage_SendMessage { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessage_SendMessage_Message : IMessage { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessage_SendMessage_Message_Message : IWriteMessage_SendMessage_Message { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessage_SendMessage_Message_Sender : IPerson { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessage_SendMessage_Message_Sender_Person : IWriteMessage_SendMessage_Message_Sender { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -974,7 +1005,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleQueryDocument : global::StrawberryShake.IDocument { private GetPeopleQueryDocument() @@ -995,6 +1026,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -1037,7 +1069,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleQuery : global::Foo.Bar.IGetPeopleQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -1075,6 +1107,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -1117,13 +1150,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the WriteMessage GraphQL operation /// @@ -1156,7 +1190,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessageMutationDocument : global::StrawberryShake.IDocument { private WriteMessageMutationDocument() @@ -1177,6 +1211,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the WriteMessage GraphQL operation /// @@ -1209,7 +1244,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessageMutation : global::Foo.Bar.IWriteMessageMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -1272,6 +1307,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the WriteMessage GraphQL operation /// @@ -1304,17 +1340,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessageMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.String text, global::System.String address, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.String text, global::System.String address, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPeopleQuery _getPeople; @@ -1330,10 +1367,11 @@ namespace Foo.Bar public global::Foo.Bar.IWriteMessageMutation WriteMessage => _writeMessage; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPeopleQuery GetPeople { get; } @@ -1344,6 +1382,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator ///Type person [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity @@ -1361,6 +1400,7 @@ namespace Foo.Bar.State public global::Foo.Bar.State.MessageConnectionData? Messages { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator ///Type message [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class MessageEntity @@ -1378,7 +1418,8 @@ namespace Foo.Bar.State public global::System.String Text { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1527,7 +1568,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1552,7 +1594,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessageResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1622,7 +1665,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessageResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1647,7 +1691,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1869,7 +1914,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessageBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1997,6 +2043,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonConnectionData @@ -2013,6 +2060,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class MessageConnectionData @@ -2029,6 +2077,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///Type SendMessagePayload [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class SendMessagePayloadData @@ -2045,7 +2094,8 @@ namespace Foo.Bar.State public global::StrawberryShake.EntityId? Message { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2130,7 +2180,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Messages_Nodes_MessageFromMessageEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2162,7 +2213,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Messages_Nodes_Sender_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2182,7 +2234,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessage_SendMessage_Message_MessageFromMessageEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2214,7 +2267,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessage_SendMessage_Message_Sender_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2234,7 +2288,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -2293,7 +2348,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -2304,7 +2360,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_MapperMapsEntityOnRootCorrectly_With_Records.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_MapperMapsEntityOnRootCorrectly_With_Records.snap index 5d0c268e5cc..61de51f4d49 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_MapperMapsEntityOnRootCorrectly_With_Records.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityGeneratorTests.Generate_ChatClient_MapperMapsEntityOnRootCorrectly_With_Records.snap @@ -16,10 +16,11 @@ namespace Foo.Bar { + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResult : global::System.IEquatable, IGetPeopleResult { public GetPeopleResult(global::Foo.Bar.IGetPeople_People? people) @@ -87,10 +88,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_PersonConnection : global::System.IEquatable, IGetPeople_People_PersonConnection { public GetPeople_People_PersonConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -164,10 +166,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Person : global::System.IEquatable, IGetPeople_People_Nodes_Person { public GetPeople_People_Nodes_Person(global::System.String name, global::Foo.Bar.IGetPeople_People_Nodes_Messages? messages) @@ -242,10 +245,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Messages_MessageConnection : global::System.IEquatable, IGetPeople_People_Nodes_Messages_MessageConnection { public GetPeople_People_Nodes_Messages_MessageConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -319,10 +323,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Messages_Nodes_Message : global::System.IEquatable, IGetPeople_People_Nodes_Messages_Nodes_Message { public GetPeople_People_Nodes_Messages_Nodes_Message(global::Foo.Bar.IGetPeople_People_Nodes_Messages_Nodes_Sender sender, global::System.String text) @@ -393,10 +398,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Messages_Nodes_Sender_Person : global::System.IEquatable, IGetPeople_People_Nodes_Messages_Nodes_Sender_Person { public GetPeople_People_Nodes_Messages_Nodes_Sender_Person(global::System.String name) @@ -460,10 +466,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleResult { /// @@ -472,10 +479,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeople_People? People { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People { /// @@ -484,18 +492,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_PersonConnection : IGetPeople_People { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPerson { /// @@ -504,10 +514,11 @@ namespace Foo.Bar public global::System.String Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes : IPerson { /// @@ -516,18 +527,20 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeople_People_Nodes_Messages? Messages { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Person : IGetPeople_People_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Messages { /// @@ -536,18 +549,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Messages_MessageConnection : IGetPeople_People_Nodes_Messages { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IMessage { /// @@ -561,42 +576,47 @@ namespace Foo.Bar public global::System.String Text { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Messages_Nodes : IMessage { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Messages_Nodes_Message : IGetPeople_People_Nodes_Messages_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Messages_Nodes_Sender : IPerson { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Messages_Nodes_Sender_Person : IGetPeople_People_Nodes_Messages_Nodes_Sender { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type Mutation /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessageResult : global::System.IEquatable, IWriteMessageResult { public WriteMessageResult(global::Foo.Bar.IWriteMessage_SendMessage sendMessage) @@ -660,10 +680,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type SendMessagePayload /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessage_SendMessage_SendMessagePayload : global::System.IEquatable, IWriteMessage_SendMessage_SendMessagePayload { public WriteMessage_SendMessage_SendMessagePayload(global::Foo.Bar.IWriteMessage_SendMessage_Message message) @@ -727,10 +748,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessage_SendMessage_Message_Message : global::System.IEquatable, IWriteMessage_SendMessage_Message_Message { public WriteMessage_SendMessage_Message_Message(global::Foo.Bar.IGetPeople_People_Nodes_Messages_Nodes_Sender sender, global::System.String text) @@ -801,10 +823,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessage_SendMessage_Message_Sender_Person : global::System.IEquatable, IWriteMessage_SendMessage_Message_Sender_Person { public WriteMessage_SendMessage_Message_Sender_Person(global::System.String name) @@ -868,10 +891,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type Mutation /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessageResult { /// @@ -880,10 +904,11 @@ namespace Foo.Bar public global::Foo.Bar.IWriteMessage_SendMessage SendMessage { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type SendMessagePayload /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessage_SendMessage { /// @@ -892,46 +917,52 @@ namespace Foo.Bar public global::Foo.Bar.IWriteMessage_SendMessage_Message Message { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type SendMessagePayload /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessage_SendMessage_SendMessagePayload : IWriteMessage_SendMessage { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessage_SendMessage_Message : IMessage { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessage_SendMessage_Message_Message : IWriteMessage_SendMessage_Message { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessage_SendMessage_Message_Sender : IPerson { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessage_SendMessage_Message_Sender_Person : IWriteMessage_SendMessage_Message_Sender { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -974,7 +1005,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleQueryDocument : global::StrawberryShake.IDocument { private GetPeopleQueryDocument() @@ -995,6 +1026,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -1037,7 +1069,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleQuery : global::Foo.Bar.IGetPeopleQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -1075,6 +1107,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -1117,13 +1150,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the WriteMessage GraphQL operation /// @@ -1156,7 +1190,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessageMutationDocument : global::StrawberryShake.IDocument { private WriteMessageMutationDocument() @@ -1177,6 +1211,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the WriteMessage GraphQL operation /// @@ -1209,7 +1244,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessageMutation : global::Foo.Bar.IWriteMessageMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -1272,6 +1307,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the WriteMessage GraphQL operation /// @@ -1304,17 +1340,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IWriteMessageMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.String text, global::System.String address, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.String text, global::System.String address, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPeopleQuery _getPeople; @@ -1330,10 +1367,11 @@ namespace Foo.Bar public global::Foo.Bar.IWriteMessageMutation WriteMessage => _writeMessage; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPeopleQuery GetPeople { get; } @@ -1344,6 +1382,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator ///Type person [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record PersonEntity @@ -1361,6 +1400,7 @@ namespace Foo.Bar.State public global::Foo.Bar.State.MessageConnectionData? Messages { get; init; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator ///Type message [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record MessageEntity @@ -1378,7 +1418,8 @@ namespace Foo.Bar.State public global::System.String Text { get; init; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1527,7 +1568,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1552,7 +1594,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessageResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1622,7 +1665,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessageResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1647,7 +1691,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1869,7 +1914,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessageBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1997,6 +2043,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record PersonConnectionData @@ -2013,6 +2060,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Nodes { get; init; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record MessageConnectionData @@ -2029,6 +2077,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Nodes { get; init; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///Type SendMessagePayload [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record SendMessagePayloadData @@ -2045,7 +2094,8 @@ namespace Foo.Bar.State public global::StrawberryShake.EntityId? Message { get; init; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2130,7 +2180,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Messages_Nodes_MessageFromMessageEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2162,7 +2213,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Messages_Nodes_Sender_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2182,7 +2234,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessage_SendMessage_Message_MessageFromMessageEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2214,7 +2267,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class WriteMessage_SendMessage_Message_Sender_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2234,7 +2288,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -2293,7 +2348,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -2304,7 +2360,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_ComplexEntity.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_ComplexEntity.snap index 2587a7b1f9c..d0429ceaaa7 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_ComplexEntity.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_ComplexEntity.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String id, global::System.String? email) @@ -150,13 +152,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Id { get; } @@ -164,11 +168,13 @@ namespace Foo.Bar public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -185,7 +191,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -206,6 +212,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -222,7 +229,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -260,6 +267,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -276,17 +284,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -299,10 +308,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -311,6 +321,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity { @@ -325,7 +336,8 @@ namespace Foo.Bar.State public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -373,7 +385,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -395,7 +408,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -486,7 +500,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -506,7 +521,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -548,7 +564,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -559,7 +576,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_DateTimeOffset_Entity.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_DateTimeOffset_Entity.snap index 1db56d635a5..d78307d28eb 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_DateTimeOffset_Entity.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_DateTimeOffset_Entity.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.DateTimeOffset id, global::System.String? email) @@ -150,13 +152,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.DateTimeOffset Id { get; } @@ -164,11 +168,13 @@ namespace Foo.Bar public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -184,7 +190,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -205,6 +211,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -220,7 +227,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -258,6 +265,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -273,17 +281,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -296,10 +305,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -308,6 +318,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity { @@ -322,7 +333,8 @@ namespace Foo.Bar.State public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -370,7 +382,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -392,7 +405,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -485,7 +499,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -505,7 +520,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -545,7 +561,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -556,7 +573,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_IdEntity.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_IdEntity.snap index da1d3e3b1b5..449addfb326 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_IdEntity.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_IdEntity.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String id, global::System.String? email) @@ -150,13 +152,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Id { get; } @@ -164,11 +168,13 @@ namespace Foo.Bar public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -184,7 +190,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -205,6 +211,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -220,7 +227,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -258,6 +265,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -273,17 +281,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -296,10 +305,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -308,6 +318,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity { @@ -322,7 +333,8 @@ namespace Foo.Bar.State public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -370,7 +382,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -392,7 +405,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -483,7 +497,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -503,7 +518,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -543,7 +559,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -554,7 +571,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_NoEntity.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_NoEntity.snap index ea45f9da84b..cc213755caf 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_NoEntity.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_NoEntity.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name, global::System.String? email) @@ -150,13 +152,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } @@ -164,11 +168,13 @@ namespace Foo.Bar public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -181,7 +187,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -202,6 +208,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -214,7 +221,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -252,6 +259,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -264,17 +272,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -287,10 +296,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -299,7 +309,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -350,7 +361,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -372,7 +384,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -451,6 +464,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonData { @@ -468,7 +482,8 @@ namespace Foo.Bar.State public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -489,7 +504,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -500,7 +516,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_Uuid_Entity.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_Uuid_Entity.snap index 856e1c6316c..42c137459fb 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_Uuid_Entity.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityIdFactoryGeneratorTests.Simple_Uuid_Entity.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.Guid id, global::System.String? email) @@ -150,13 +152,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.Guid Id { get; } @@ -164,11 +168,13 @@ namespace Foo.Bar public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -184,7 +190,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -205,6 +211,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -220,7 +227,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -258,6 +265,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -273,17 +281,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -296,10 +305,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -308,6 +318,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity { @@ -322,7 +333,8 @@ namespace Foo.Bar.State public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -370,7 +382,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -392,7 +405,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -485,7 +499,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -505,7 +520,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -545,7 +561,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -556,7 +573,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.InterfaceField.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.InterfaceField.snap index fe449c8af46..e8eb2506556 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.InterfaceField.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.InterfaceField.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResult : global::System.IEquatable, IGetFooResult { public GetFooResult(global::Foo.Bar.IGetFoo_Foo? foo) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz : global::System.IEquatable, IGetFoo_Foo_Baz { public GetFoo_Foo_Baz(global::System.String? foo, global::System.String? id) @@ -154,7 +156,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz2 : global::System.IEquatable, IGetFoo_Foo_Baz2 { public GetFoo_Foo_Baz2(global::System.String? foo, global::System.String? id) @@ -227,7 +230,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Quox : global::System.IEquatable, IGetFoo_Foo_Quox { public GetFoo_Foo_Quox(global::System.String? foo, global::System.String? baz) @@ -300,7 +304,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Quox2 : global::System.IEquatable, IGetFoo_Foo_Quox2 { public GetFoo_Foo_Quox2(global::System.String? foo, global::System.String? bar) @@ -373,42 +378,49 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooResult { public global::Foo.Bar.IGetFoo_Foo? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz : IGetFoo_Foo { public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz2 : IGetFoo_Foo { public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Quox : IGetFoo_Foo { public global::System.String? Baz { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Quox2 : IGetFoo_Foo { public global::System.String? Bar { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -438,7 +450,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQueryDocument : global::StrawberryShake.IDocument { private GetFooQueryDocument() @@ -459,6 +471,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -488,7 +501,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQuery : global::Foo.Bar.IGetFooQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -526,6 +539,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -555,17 +569,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetFooQuery _getFoo; @@ -578,10 +593,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetFooQuery GetFoo => _getFoo; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetFooQuery GetFoo { get; } @@ -590,6 +606,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BazEntity { @@ -604,6 +621,7 @@ namespace Foo.Bar.State public global::System.String? Id { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Baz2Entity { @@ -618,7 +636,8 @@ namespace Foo.Bar.State public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -718,7 +737,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -740,7 +760,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -847,12 +868,14 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IBarData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class QuoxData : IBarData { @@ -870,6 +893,7 @@ namespace Foo.Bar.State public global::System.String? Baz { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Quox2Data : IBarData { @@ -887,7 +911,8 @@ namespace Foo.Bar.State public global::System.String? Bar { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_BazFromBazEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -907,7 +932,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz2FromBaz2EntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -927,7 +953,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -986,7 +1013,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -997,7 +1025,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.InterfaceList.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.InterfaceList.snap index 3ebfa56049f..9eadffd364c 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.InterfaceList.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.InterfaceList.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResult : global::System.IEquatable, IGetFooResult { public GetFooResult(global::System.Collections.Generic.IReadOnlyList? foo) @@ -87,7 +88,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz : global::System.IEquatable, IGetFoo_Foo_Baz { public GetFoo_Foo_Baz(global::System.String? foo, global::System.String? id) @@ -160,7 +162,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz2 : global::System.IEquatable, IGetFoo_Foo_Baz2 { public GetFoo_Foo_Baz2(global::System.String? foo, global::System.String? id) @@ -233,7 +236,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Quox : global::System.IEquatable, IGetFoo_Foo_Quox { public GetFoo_Foo_Quox(global::System.String? foo, global::System.String? baz) @@ -306,7 +310,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Quox2 : global::System.IEquatable, IGetFoo_Foo_Quox2 { public GetFoo_Foo_Quox2(global::System.String? foo, global::System.String? bar) @@ -379,42 +384,49 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooResult { public global::System.Collections.Generic.IReadOnlyList? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz : IGetFoo_Foo { public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz2 : IGetFoo_Foo { public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Quox : IGetFoo_Foo { public global::System.String? Baz { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Quox2 : IGetFoo_Foo { public global::System.String? Bar { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -444,7 +456,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQueryDocument : global::StrawberryShake.IDocument { private GetFooQueryDocument() @@ -465,6 +477,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -494,7 +507,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQuery : global::Foo.Bar.IGetFooQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -532,6 +545,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -561,17 +575,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetFooQuery _getFoo; @@ -584,10 +599,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetFooQuery GetFoo => _getFoo; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetFooQuery GetFoo { get; } @@ -596,6 +612,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BazEntity { @@ -610,6 +627,7 @@ namespace Foo.Bar.State public global::System.String? Id { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Baz2Entity { @@ -624,7 +642,8 @@ namespace Foo.Bar.State public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -740,7 +759,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -762,7 +782,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -890,12 +911,14 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IBarData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class QuoxData : IBarData { @@ -913,6 +936,7 @@ namespace Foo.Bar.State public global::System.String? Baz { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Quox2Data : IBarData { @@ -930,7 +954,8 @@ namespace Foo.Bar.State public global::System.String? Bar { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_BazFromBazEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -950,7 +975,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz2FromBaz2EntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -970,7 +996,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1029,7 +1056,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1040,7 +1068,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.NonNullableValueTypeId.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.NonNullableValueTypeId.snap index 2dee684e443..e3a37258eda 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.NonNullableValueTypeId.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.NonNullableValueTypeId.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResult : global::System.IEquatable, IGetFooResult { public GetFooResult(global::System.Collections.Generic.IReadOnlyList? foo) @@ -87,7 +88,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz : global::System.IEquatable, IGetFoo_Foo_Baz { public GetFoo_Foo_Baz(global::System.Int32 id) @@ -148,7 +150,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Quox : global::System.IEquatable, IGetFoo_Foo_Quox { public GetFoo_Foo_Quox(global::System.Int32 foo) @@ -209,7 +212,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz2 : global::System.IEquatable, IGetFoo_Foo_Baz2 { public GetFoo_Foo_Baz2(global::System.Int32 id) @@ -270,7 +274,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Quox2 : global::System.IEquatable, IGetFoo_Foo_Quox2 { public GetFoo_Foo_Quox2(global::System.Int32 foo) @@ -331,41 +336,48 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooResult { public global::System.Collections.Generic.IReadOnlyList? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz : IGetFoo_Foo { public global::System.Int32 Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Quox : IGetFoo_Foo { public global::System.Int32 Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz2 : IGetFoo_Foo { public global::System.Int32 Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Quox2 : IGetFoo_Foo { public global::System.Int32 Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -394,7 +406,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQueryDocument : global::StrawberryShake.IDocument { private GetFooQueryDocument() @@ -415,6 +427,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -443,7 +456,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQuery : global::Foo.Bar.IGetFooQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -481,6 +494,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -509,17 +523,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetFooQuery _getFoo; @@ -532,10 +547,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetFooQuery GetFoo => _getFoo; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetFooQuery GetFoo { get; } @@ -544,6 +560,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BazEntity { @@ -555,6 +572,7 @@ namespace Foo.Bar.State public global::System.Int32 Id { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Baz2Entity { @@ -566,7 +584,8 @@ namespace Foo.Bar.State public global::System.Int32 Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -692,7 +711,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -714,7 +734,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -842,12 +863,14 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IBarData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class QuoxData : IBarData { @@ -862,6 +885,7 @@ namespace Foo.Bar.State public global::System.Int32? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Quox2Data : IBarData { @@ -876,7 +900,8 @@ namespace Foo.Bar.State public global::System.Int32? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_BazFromBazEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -896,7 +921,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz2FromBaz2EntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -916,7 +942,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -975,7 +1002,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -986,7 +1014,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionField.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionField.snap index 486e04f02ef..42bf3e9ab9a 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionField.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionField.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResult : global::System.IEquatable, IGetFooResult { public GetFooResult(global::Foo.Bar.IGetFoo_Foo? foo) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz : global::System.IEquatable, IGetFoo_Foo_Baz { public GetFoo_Foo_Baz(global::System.String? id) @@ -146,7 +148,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Quox : global::System.IEquatable, IGetFoo_Foo_Quox { public GetFoo_Foo_Quox(global::System.String? foo) @@ -211,7 +214,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz2 : global::System.IEquatable, IGetFoo_Foo_Baz2 { public GetFoo_Foo_Baz2(global::System.String? id) @@ -276,7 +280,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Quox2 : global::System.IEquatable, IGetFoo_Foo_Quox2 { public GetFoo_Foo_Quox2(global::System.String? foo) @@ -341,41 +346,48 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooResult { public global::Foo.Bar.IGetFoo_Foo? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz : IGetFoo_Foo { public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Quox : IGetFoo_Foo { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz2 : IGetFoo_Foo { public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Quox2 : IGetFoo_Foo { public global::System.String? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -404,7 +416,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQueryDocument : global::StrawberryShake.IDocument { private GetFooQueryDocument() @@ -425,6 +437,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -453,7 +466,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQuery : global::Foo.Bar.IGetFooQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -491,6 +504,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -519,17 +533,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetFooQuery _getFoo; @@ -542,10 +557,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetFooQuery GetFoo => _getFoo; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetFooQuery GetFoo { get; } @@ -554,6 +570,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BazEntity { @@ -565,6 +582,7 @@ namespace Foo.Bar.State public global::System.String? Id { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Baz2Entity { @@ -576,7 +594,8 @@ namespace Foo.Bar.State public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -676,7 +695,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -698,7 +718,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -805,12 +826,14 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IBarData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class QuoxData : IBarData { @@ -825,6 +848,7 @@ namespace Foo.Bar.State public global::System.String? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Quox2Data : IBarData { @@ -839,7 +863,8 @@ namespace Foo.Bar.State public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_BazFromBazEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -859,7 +884,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz2FromBaz2EntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -879,7 +905,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -938,7 +965,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -949,7 +977,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionList.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionList.snap index 978cdefa107..33cc61dd41c 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionList.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionList.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResult : global::System.IEquatable, IGetFooResult { public GetFooResult(global::System.Collections.Generic.IReadOnlyList? foo) @@ -87,7 +88,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz : global::System.IEquatable, IGetFoo_Foo_Baz { public GetFoo_Foo_Baz(global::System.String? id) @@ -152,7 +154,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Quox : global::System.IEquatable, IGetFoo_Foo_Quox { public GetFoo_Foo_Quox(global::System.String? foo) @@ -217,7 +220,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz2 : global::System.IEquatable, IGetFoo_Foo_Baz2 { public GetFoo_Foo_Baz2(global::System.String? id) @@ -282,7 +286,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Quox2 : global::System.IEquatable, IGetFoo_Foo_Quox2 { public GetFoo_Foo_Quox2(global::System.String? foo) @@ -347,41 +352,48 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooResult { public global::System.Collections.Generic.IReadOnlyList? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz : IGetFoo_Foo { public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Quox : IGetFoo_Foo { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz2 : IGetFoo_Foo { public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Quox2 : IGetFoo_Foo { public global::System.String? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -410,7 +422,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQueryDocument : global::StrawberryShake.IDocument { private GetFooQueryDocument() @@ -431,6 +443,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -459,7 +472,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQuery : global::Foo.Bar.IGetFooQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -497,6 +510,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -525,17 +539,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetFooQuery _getFoo; @@ -548,10 +563,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetFooQuery GetFoo => _getFoo; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetFooQuery GetFoo { get; } @@ -560,6 +576,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BazEntity { @@ -571,6 +588,7 @@ namespace Foo.Bar.State public global::System.String? Id { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Baz2Entity { @@ -582,7 +600,8 @@ namespace Foo.Bar.State public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -698,7 +717,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -720,7 +740,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -848,12 +869,14 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IBarData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class QuoxData : IBarData { @@ -868,6 +891,7 @@ namespace Foo.Bar.State public global::System.String? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Quox2Data : IBarData { @@ -882,7 +906,8 @@ namespace Foo.Bar.State public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_BazFromBazEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -902,7 +927,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz2FromBaz2EntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -922,7 +948,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -981,7 +1008,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -992,7 +1020,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionListInEntity.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionListInEntity.snap index 12d7abfe0c4..f75e2e44b0a 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionListInEntity.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionListInEntity.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResult : global::System.IEquatable, IGetFooResult { public GetFooResult(global::Foo.Bar.IGetFoo_Test? test) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Test_Test : global::System.IEquatable, IGetFoo_Test_Test { public GetFoo_Test_Test(global::System.Collections.Generic.IReadOnlyList? foo) @@ -152,7 +154,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Test_Foo_Baz : global::System.IEquatable, IGetFoo_Test_Foo_Baz { public GetFoo_Test_Foo_Baz(global::System.String? id) @@ -217,7 +220,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Test_Foo_Quox : global::System.IEquatable, IGetFoo_Test_Foo_Quox { public GetFoo_Test_Foo_Quox(global::System.String? foo) @@ -282,7 +286,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Test_Foo_Baz2 : global::System.IEquatable, IGetFoo_Test_Foo_Baz2 { public GetFoo_Test_Foo_Baz2(global::System.String? id) @@ -347,7 +352,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Test_Foo_Quox2 : global::System.IEquatable, IGetFoo_Test_Foo_Quox2 { public GetFoo_Test_Foo_Quox2(global::System.String? foo) @@ -412,52 +418,61 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooResult { public global::Foo.Bar.IGetFoo_Test? Test { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Test { public global::System.Collections.Generic.IReadOnlyList? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Test_Test : IGetFoo_Test { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Test_Foo { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Test_Foo_Baz : IGetFoo_Test_Foo { public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Test_Foo_Quox : IGetFoo_Test_Foo { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Test_Foo_Baz2 : IGetFoo_Test_Foo { public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Test_Foo_Quox2 : IGetFoo_Test_Foo { public global::System.String? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -492,7 +507,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQueryDocument : global::StrawberryShake.IDocument { private GetFooQueryDocument() @@ -513,6 +528,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -547,7 +563,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQuery : global::Foo.Bar.IGetFooQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -585,6 +601,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -619,17 +636,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetFooQuery _getFoo; @@ -642,10 +660,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetFooQuery GetFoo => _getFoo; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetFooQuery GetFoo { get; } @@ -654,6 +673,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class TestEntity { @@ -665,6 +685,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BazEntity { @@ -676,6 +697,7 @@ namespace Foo.Bar.State public global::System.String? Id { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Baz2Entity { @@ -687,7 +709,8 @@ namespace Foo.Bar.State public global::System.String? Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -735,7 +758,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -757,7 +781,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -916,12 +941,14 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IBarData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class QuoxData : IBarData { @@ -936,6 +963,7 @@ namespace Foo.Bar.State public global::System.String? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Quox2Data : IBarData { @@ -950,7 +978,8 @@ namespace Foo.Bar.State public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Test_TestFromTestEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1055,7 +1084,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Test_Foo_BazFromBazEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1075,7 +1105,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Test_Foo_Baz2FromBaz2EntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1095,7 +1126,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1173,7 +1205,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1184,7 +1217,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionWithNestedObject.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionWithNestedObject.snap index 0f40794bcc3..de9128d6772 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionWithNestedObject.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/EntityOrIdGeneratorTests.UnionWithNestedObject.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StoreUserSettingForResult : global::System.IEquatable, IStoreUserSettingForResult { public StoreUserSettingForResult(global::Foo.Bar.IStoreUserSettingFor_StoreUserSettingFor storeUserSettingFor) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StoreUserSettingFor_StoreUserSettingFor_UserSettingSuccess : global::System.IEquatable, IStoreUserSettingFor_StoreUserSettingFor_UserSettingSuccess { public StoreUserSettingFor_StoreUserSettingFor_UserSettingSuccess(global::System.Int32 id) @@ -138,7 +140,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StoreUserSettingFor_StoreUserSettingFor_UserSettingError : global::System.IEquatable, IStoreUserSettingFor_StoreUserSettingFor_UserSettingError { public StoreUserSettingFor_StoreUserSettingFor_UserSettingError(global::System.Collections.Generic.IReadOnlyList errors) @@ -203,7 +206,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StoreUserSettingFor_StoreUserSettingFor_Errors_ErrorNode : global::System.IEquatable, IStoreUserSettingFor_StoreUserSettingFor_Errors_ErrorNode { public StoreUserSettingFor_StoreUserSettingFor_Errors_ErrorNode(global::Foo.Bar.ErrorCode? code, global::System.String? message) @@ -276,30 +280,35 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStoreUserSettingForResult { public global::Foo.Bar.IStoreUserSettingFor_StoreUserSettingFor StoreUserSettingFor { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStoreUserSettingFor_StoreUserSettingFor { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStoreUserSettingFor_StoreUserSettingFor_UserSettingSuccess : IStoreUserSettingFor_StoreUserSettingFor { public global::System.Int32 Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStoreUserSettingFor_StoreUserSettingFor_UserSettingError : IStoreUserSettingFor_StoreUserSettingFor { public global::System.Collections.Generic.IReadOnlyList Errors { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStoreUserSettingFor_StoreUserSettingFor_Errors { public global::Foo.Bar.ErrorCode? Code { get; } @@ -307,12 +316,14 @@ namespace Foo.Bar public global::System.String? Message { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStoreUserSettingFor_StoreUserSettingFor_Errors_ErrorNode : IStoreUserSettingFor_StoreUserSettingFor_Errors { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StoreUserSettingForInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringFormatter = default !; @@ -375,6 +386,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class StoreUserSettingForInput : global::Foo.Bar.State.IStoreUserSettingForInputInfo, global::System.IEquatable { @@ -465,7 +477,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IStoreUserSettingForInputInfo.IsMobileSet => _set_mobile; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum ErrorCode { Unknown, @@ -474,7 +487,8 @@ namespace Foo.Bar Failed } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ErrorCodeSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "ErrorCode"; @@ -501,6 +515,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the StoreUserSettingFor GraphQL operation /// @@ -524,7 +539,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StoreUserSettingForMutationDocument : global::StrawberryShake.IDocument { private StoreUserSettingForMutationDocument() @@ -545,6 +560,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the StoreUserSettingFor GraphQL operation /// @@ -568,7 +584,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StoreUserSettingForMutation : global::Foo.Bar.IStoreUserSettingForMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -634,6 +650,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the StoreUserSettingFor GraphQL operation /// @@ -657,17 +674,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IStoreUserSettingForMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Int32 userId, global::System.Int32 customerId, global::Foo.Bar.StoreUserSettingForInput input, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.Int32 userId, global::System.Int32 customerId, global::Foo.Bar.StoreUserSettingForInput input, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IStoreUserSettingForMutation _storeUserSettingFor; @@ -680,10 +698,11 @@ namespace Foo.Bar public global::Foo.Bar.IStoreUserSettingForMutation StoreUserSettingFor => _storeUserSettingFor; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IStoreUserSettingForMutation StoreUserSettingFor { get; } @@ -692,6 +711,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class UserSettingSuccessEntity { @@ -703,7 +723,8 @@ namespace Foo.Bar.State public global::System.Int32 Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StoreUserSettingForResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -808,7 +829,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StoreUserSettingForResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -830,6 +852,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IStoreUserSettingForInputInfo { @@ -838,7 +861,8 @@ namespace Foo.Bar.State global::System.Boolean IsMobileSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StoreUserSettingForBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -998,12 +1022,14 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IUserSettingResultData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class UserSettingErrorData : IUserSettingResultData { @@ -1018,6 +1044,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Errors { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ErrorNodeData { @@ -1035,7 +1062,8 @@ namespace Foo.Bar.State public global::System.String? Message { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StoreUserSettingFor_StoreUserSettingFor_UserSettingSuccessFromUserSettingSuccessEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1055,7 +1083,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1095,7 +1124,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1106,7 +1136,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ErrorGeneratorTests.Generate_ChatClient_InvalidNullCheck.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ErrorGeneratorTests.Generate_ChatClient_InvalidNullCheck.snap index 9fe21874f10..db519dbd2a6 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ErrorGeneratorTests.Generate_ChatClient_InvalidNullCheck.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ErrorGeneratorTests.Generate_ChatClient_InvalidNullCheck.snap @@ -16,10 +16,11 @@ namespace Foo.Bar { + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResult : global::System.IEquatable, IGetPeopleResult { public GetPeopleResult(global::Foo.Bar.IGetPeople_Me me) @@ -83,10 +84,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_Me_Person : global::System.IEquatable, IGetPeople_Me_Person { public GetPeople_Me_Person(global::Foo.Bar.IGetPeople_Me_Friends? friends) @@ -154,10 +156,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_Me_Friends_PersonConnection : global::System.IEquatable, IGetPeople_Me_Friends_PersonConnection { public GetPeople_Me_Friends_PersonConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -231,10 +234,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_Me_Friends_Nodes_Person : global::System.IEquatable, IGetPeople_Me_Friends_Nodes_Person { public GetPeople_Me_Friends_Nodes_Person(global::System.String name, global::System.String email, global::System.Boolean isOnline) @@ -312,10 +316,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleResult { /// @@ -324,10 +329,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeople_Me Me { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_Me { /// @@ -336,18 +342,20 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeople_Me_Friends? Friends { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_Me_Person : IGetPeople_Me { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_Me_Friends { /// @@ -356,18 +364,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_Me_Friends_PersonConnection : IGetPeople_Me_Friends { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_Me_Friends_Nodes { /// @@ -386,14 +396,16 @@ namespace Foo.Bar public global::System.Boolean IsOnline { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_Me_Friends_Nodes_Person : IGetPeople_Me_Friends_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -419,7 +431,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleQueryDocument : global::StrawberryShake.IDocument { private GetPeopleQueryDocument() @@ -440,6 +452,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -465,7 +478,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleQuery : global::Foo.Bar.IGetPeopleQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -503,6 +516,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -528,17 +542,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPeopleQuery _getPeople; @@ -551,10 +566,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeopleQuery GetPeople => _getPeople; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPeopleQuery GetPeople { get; } @@ -563,6 +579,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator ///Type person [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity @@ -588,7 +605,8 @@ namespace Foo.Bar.State public global::System.Boolean IsOnline { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -631,7 +649,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -656,7 +675,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -822,6 +842,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonConnectionData @@ -838,7 +859,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_Me_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -911,7 +933,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_Me_Friends_Nodes_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -931,7 +954,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -971,7 +995,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -982,7 +1007,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ErrorGeneratorTests.Generate_NoErrors.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ErrorGeneratorTests.Generate_NoErrors.snap index f196f56e198..fea2a551595 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ErrorGeneratorTests.Generate_NoErrors.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ErrorGeneratorTests.Generate_NoErrors.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::Foo.Bar.IGetHero_Hero? hero) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String name, global::System.Collections.Generic.IReadOnlyList? appearsIn) @@ -156,7 +158,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String name, global::System.Collections.Generic.IReadOnlyList? appearsIn) @@ -231,13 +234,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::Foo.Bar.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero { public global::System.String Name { get; } @@ -245,17 +250,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum Episode { NewHope, @@ -263,7 +271,8 @@ namespace Foo.Bar Jedi } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class EpisodeSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Episode"; @@ -288,6 +297,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -306,7 +316,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -327,6 +337,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -345,7 +356,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::Foo.Bar.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -383,6 +394,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -401,17 +413,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetHeroQuery _getHero; @@ -424,10 +437,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetHeroQuery GetHero { get; } @@ -436,6 +450,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -450,6 +465,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -464,7 +480,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -519,7 +536,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -541,7 +559,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -669,7 +688,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -689,7 +709,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -709,7 +730,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -768,7 +790,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -779,7 +802,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Input_Type_Fields_Are_Inspected_For_LeafTypes.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Input_Type_Fields_Are_Inspected_For_LeafTypes.snap index 21431493a31..ee55f73bf2c 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Input_Type_Fields_Are_Inspected_For_LeafTypes.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Input_Type_Fields_Are_Inspected_For_LeafTypes.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ChangeHomePlanetResult : global::System.IEquatable, IChangeHomePlanetResult { public ChangeHomePlanetResult(global::Foo.Bar.IChangeHomePlanet_ChangeHomePlanet changeHomePlanet) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ChangeHomePlanet_ChangeHomePlanet_ChangeHomePlanetPayload : global::System.IEquatable, IChangeHomePlanet_ChangeHomePlanet_ChangeHomePlanetPayload { public ChangeHomePlanet_ChangeHomePlanet_ChangeHomePlanetPayload(global::Foo.Bar.IChangeHomePlanet_ChangeHomePlanet_Human human) @@ -138,10 +140,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A human character in the Star Wars universe. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ChangeHomePlanet_ChangeHomePlanet_Human_Human : global::System.IEquatable, IChangeHomePlanet_ChangeHomePlanet_Human_Human { public ChangeHomePlanet_ChangeHomePlanet_Human_Human(global::System.String? homePlanet) @@ -209,27 +212,31 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IChangeHomePlanetResult { public global::Foo.Bar.IChangeHomePlanet_ChangeHomePlanet ChangeHomePlanet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IChangeHomePlanet_ChangeHomePlanet { public global::Foo.Bar.IChangeHomePlanet_ChangeHomePlanet_Human Human { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IChangeHomePlanet_ChangeHomePlanet_ChangeHomePlanetPayload : IChangeHomePlanet_ChangeHomePlanet { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A human character in the Star Wars universe. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IChangeHomePlanet_ChangeHomePlanet_Human { /// @@ -238,15 +245,17 @@ namespace Foo.Bar public global::System.String? HomePlanet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A human character in the Star Wars universe. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IChangeHomePlanet_ChangeHomePlanet_Human_Human : IChangeHomePlanet_ChangeHomePlanet_Human { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ChangeHomePlanetInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _intFormatter = default !; @@ -302,6 +311,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ChangeHomePlanetInput : global::Foo.Bar.State.IChangeHomePlanetInputInfo, global::System.IEquatable { @@ -384,6 +394,7 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IChangeHomePlanetInputInfo.IsHomePlanetSet => _set_homePlanet; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the ChangeHomePlanet GraphQL operation /// @@ -401,7 +412,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ChangeHomePlanetMutationDocument : global::StrawberryShake.IDocument { private ChangeHomePlanetMutationDocument() @@ -422,6 +433,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the ChangeHomePlanet GraphQL operation /// @@ -439,7 +451,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ChangeHomePlanetMutation : global::Foo.Bar.IChangeHomePlanetMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -491,6 +503,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the ChangeHomePlanet GraphQL operation /// @@ -508,17 +521,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IChangeHomePlanetMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.ChangeHomePlanetInput input, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.ChangeHomePlanetInput input, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IChangeHomePlanetMutation _changeHomePlanet; @@ -531,10 +545,11 @@ namespace Foo.Bar public global::Foo.Bar.IChangeHomePlanetMutation ChangeHomePlanet => _changeHomePlanet; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IChangeHomePlanetMutation ChangeHomePlanet { get; } @@ -543,6 +558,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator ///A human character in the Star Wars universe. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity @@ -556,7 +572,8 @@ namespace Foo.Bar.State public global::System.String? HomePlanet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ChangeHomePlanetResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -614,7 +631,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ChangeHomePlanetResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -636,6 +654,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IChangeHomePlanetInputInfo { @@ -644,7 +663,8 @@ namespace Foo.Bar.State global::System.Boolean IsHomePlanetSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ChangeHomePlanetBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -743,6 +763,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ChangeHomePlanetPayloadData { @@ -757,7 +778,8 @@ namespace Foo.Bar.State public global::StrawberryShake.EntityId? Human { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ChangeHomePlanet_ChangeHomePlanet_Human_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -777,7 +799,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -817,7 +840,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -828,7 +852,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.KeywordCollisions.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.KeywordCollisions.snap index 98c111b995f..01bb9005205 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.KeywordCollisions.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.KeywordCollisions.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadonlyResult : global::System.IEquatable, IReadonlyResult { public ReadonlyResult(global::Foo.Bar.IReadonly_Readonly? @readonly, global::Foo.Bar.IReadonly_ReadonlyEntity? readonlyEntity) @@ -89,7 +90,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class Readonly_Readonly_readonly : global::System.IEquatable, IReadonly_Readonly_readonly { public Readonly_Readonly_readonly(global::System.String? @abstract) @@ -154,7 +156,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class Readonly_ReadonlyEntity_readonlyEntity : global::System.IEquatable, IReadonly_ReadonlyEntity_readonlyEntity { public Readonly_ReadonlyEntity_readonlyEntity(global::System.String? id, global::System.String? @abstract) @@ -227,7 +230,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadonlyResult { public global::Foo.Bar.IReadonly_Readonly? Readonly { get; } @@ -235,18 +239,21 @@ namespace Foo.Bar public global::Foo.Bar.IReadonly_ReadonlyEntity? ReadonlyEntity { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadonly_Readonly { public global::System.String? Abstract { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadonly_Readonly_readonly : IReadonly_Readonly { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadonly_ReadonlyEntity { public global::System.String? Id { get; } @@ -254,12 +261,14 @@ namespace Foo.Bar public global::System.String? Abstract { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadonly_ReadonlyEntity_readonlyEntity : IReadonly_ReadonlyEntity { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class abstractInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringFormatter = default !; @@ -305,6 +314,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class @abstract : global::Foo.Bar.State.IAbstractInfo, global::System.IEquatable<@abstract> { @@ -377,6 +387,7 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IAbstractInfo.IsClassSet => _set_class; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the Readonly GraphQL operation /// @@ -396,7 +407,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadonlyQueryDocument : global::StrawberryShake.IDocument { private ReadonlyQueryDocument() @@ -417,6 +428,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the Readonly GraphQL operation /// @@ -436,7 +448,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadonlyQuery : global::Foo.Bar.IReadonlyQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -488,6 +500,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the Readonly GraphQL operation /// @@ -507,17 +520,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadonlyQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.@abstract input, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.@abstract input, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IReadonlyQuery _readonly; @@ -530,10 +544,11 @@ namespace Foo.Bar public global::Foo.Bar.IReadonlyQuery Readonly => _readonly; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IReadonlyQuery Readonly { get; } @@ -542,6 +557,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class readonlyEntityEntity { @@ -556,7 +572,8 @@ namespace Foo.Bar.State public global::System.String? Abstract { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadonlyResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -624,7 +641,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadonlyResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -649,13 +667,15 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IAbstractInfo { global::System.Boolean IsClassSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadonlyBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -754,6 +774,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class readonlyData { @@ -768,7 +789,8 @@ namespace Foo.Bar.State public global::System.String? Abstract { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class Readonly_ReadonlyEntity_readonlyEntityFromreadonlyEntityEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -788,7 +810,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -828,7 +851,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -839,7 +863,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_Comments.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_Comments.snap index 2fd6baf39a4..5cb61d25b88 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_Comments.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_Comments.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResult : global::System.IEquatable, ITestResult { public TestResult(global::System.String? foo) @@ -81,13 +82,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestResult { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BarInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringFormatter = default !; @@ -236,6 +239,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator ///Bar InputType [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Bar : global::Foo.Bar.State.IBarInfo, global::System.IEquatable @@ -394,6 +398,7 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IBarInfo.IsNestedMatrixSet => _set_nestedMatrix; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -402,7 +407,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQueryDocument : global::StrawberryShake.IDocument { private TestQueryDocument() @@ -423,6 +428,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -431,7 +437,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQuery : global::Foo.Bar.ITestQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -542,6 +548,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -550,17 +557,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Bar single, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList?>? nestedList, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Bar single, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList?>? nestedList, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ITestQuery _test; @@ -573,10 +581,11 @@ namespace Foo.Bar public global::Foo.Bar.ITestQuery Test => _test; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ITestQuery Test { get; } @@ -585,7 +594,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -616,7 +626,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -638,6 +649,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBarInfo { @@ -652,7 +664,8 @@ namespace Foo.Bar.State global::System.Boolean IsNestedMatrixSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -695,7 +708,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -716,7 +730,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -727,7 +742,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_Comments_With_Input_Records.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_Comments_With_Input_Records.snap index c5485d97940..26d14fb661c 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_Comments_With_Input_Records.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_Comments_With_Input_Records.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResult : global::System.IEquatable, ITestResult { public TestResult(global::System.String? foo) @@ -81,13 +82,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestResult { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BarInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringFormatter = default !; @@ -236,6 +239,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator ///Bar InputType [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial record Bar : global::Foo.Bar.State.IBarInfo @@ -374,6 +378,7 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IBarInfo.IsNestedMatrixSet => _set_nestedMatrix; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -382,7 +387,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQueryDocument : global::StrawberryShake.IDocument { private TestQueryDocument() @@ -403,6 +408,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -411,7 +417,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQuery : global::Foo.Bar.ITestQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -522,6 +528,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -530,17 +537,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Bar single, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList?>? nestedList, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Bar single, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList?>? nestedList, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ITestQuery _test; @@ -553,10 +561,11 @@ namespace Foo.Bar public global::Foo.Bar.ITestQuery Test => _test; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ITestQuery Test { get; } @@ -565,7 +574,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -596,7 +606,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -618,6 +629,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBarInfo { @@ -632,7 +644,8 @@ namespace Foo.Bar.State global::System.Boolean IsNestedMatrixSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -675,7 +688,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -696,7 +710,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -707,7 +722,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_ComplexInputTypes.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_ComplexInputTypes.snap index 222620c5ff3..ef1462e3a1d 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_ComplexInputTypes.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_ComplexInputTypes.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResult : global::System.IEquatable, ITestResult { public TestResult(global::System.String? foo) @@ -81,13 +82,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestResult { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UserInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringFormatter = default !; @@ -192,6 +195,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class User : global::Foo.Bar.State.IUserInfo, global::System.IEquatable { @@ -312,7 +316,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IUserInfo.IsPhotosSet => _set_photos; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AddressInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringFormatter = default !; @@ -356,6 +361,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Address : global::Foo.Bar.State.IAddressInfo, global::System.IEquatable
{ @@ -424,7 +430,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IAddressInfo.IsStreetSet => _set_street; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PhotoInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _uploadFormatter = default !; @@ -482,6 +489,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Photo : global::Foo.Bar.State.IPhotoInfo, global::System.IEquatable { @@ -568,7 +576,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IPhotoInfo.IsMetadataSet => _set_metadata; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PhotoMetadataInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _uploadFormatter = default !; @@ -607,6 +616,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PhotoMetadata : global::Foo.Bar.State.IPhotoMetadataInfo, global::System.IEquatable { @@ -675,6 +685,7 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IPhotoMetadataInfo.IsThumbnailSet => _set_thumbnail; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -683,7 +694,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQueryDocument : global::StrawberryShake.IDocument { private TestQueryDocument() @@ -704,6 +715,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -712,7 +724,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQuery : global::Foo.Bar.ITestQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -815,6 +827,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -823,17 +836,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.User input, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.User input, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ITestQuery _test; @@ -846,10 +860,11 @@ namespace Foo.Bar public global::Foo.Bar.ITestQuery Test => _test; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ITestQuery Test { get; } @@ -858,7 +873,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -889,7 +905,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -911,6 +928,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IUserInfo { @@ -923,12 +941,14 @@ namespace Foo.Bar.State global::System.Boolean IsPhotosSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IAddressInfo { global::System.Boolean IsStreetSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IPhotoInfo { @@ -937,13 +957,15 @@ namespace Foo.Bar.State global::System.Boolean IsMetadataSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IPhotoMetadataInfo { global::System.Boolean IsThumbnailSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -988,7 +1010,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1009,7 +1032,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1020,7 +1044,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_Complex_Arguments.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_Complex_Arguments.snap index 15cfa0bc8b9..9dd2969a992 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_Complex_Arguments.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_Complex_Arguments.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResult : global::System.IEquatable, ITestResult { public TestResult(global::System.String? foo) @@ -81,13 +82,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestResult { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BarInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringFormatter = default !; @@ -236,6 +239,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Bar : global::Foo.Bar.State.IBarInfo, global::System.IEquatable { @@ -388,6 +392,7 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IBarInfo.IsNestedMatrixSet => _set_nestedMatrix; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -396,7 +401,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQueryDocument : global::StrawberryShake.IDocument { private TestQueryDocument() @@ -417,6 +422,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -425,7 +431,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQuery : global::Foo.Bar.ITestQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -536,6 +542,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -544,17 +551,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Bar single, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList?>? nestedList, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Bar single, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList?>? nestedList, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ITestQuery _test; @@ -567,10 +575,11 @@ namespace Foo.Bar public global::Foo.Bar.ITestQuery Test => _test; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ITestQuery Test { get; } @@ -579,7 +588,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -610,7 +620,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -632,6 +643,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBarInfo { @@ -646,7 +658,8 @@ namespace Foo.Bar.State global::System.Boolean IsNestedMatrixSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -689,7 +702,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -710,7 +724,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -721,7 +736,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_FirstNonUpload.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_FirstNonUpload.snap index bdf7aae728d..4c4b9f6bca6 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_FirstNonUpload.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_FirstNonUpload.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResult : global::System.IEquatable, ITestResult { public TestResult(global::System.String? foo) @@ -81,12 +82,14 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestResult { public global::System.String? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -95,7 +98,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQueryDocument : global::StrawberryShake.IDocument { private TestQueryDocument() @@ -116,6 +119,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -124,7 +128,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQuery : global::Foo.Bar.ITestQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -191,6 +195,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -199,17 +204,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.String @string, global::StrawberryShake.Upload upload, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.String @string, global::StrawberryShake.Upload upload, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ITestQuery _test; @@ -222,10 +228,11 @@ namespace Foo.Bar public global::Foo.Bar.ITestQuery Test => _test; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ITestQuery Test { get; } @@ -234,7 +241,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -265,7 +273,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -287,7 +296,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -332,7 +342,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -353,7 +364,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -364,7 +376,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_LastNonUpload.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_LastNonUpload.snap index c63e1f1352a..aced27a01b7 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_LastNonUpload.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_LastNonUpload.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResult : global::System.IEquatable, ITestResult { public TestResult(global::System.String? foo) @@ -81,12 +82,14 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestResult { public global::System.String? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -95,7 +98,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQueryDocument : global::StrawberryShake.IDocument { private TestQueryDocument() @@ -116,6 +119,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -124,7 +128,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQuery : global::Foo.Bar.ITestQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -191,6 +195,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -199,17 +204,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::StrawberryShake.Upload upload, global::System.String @string, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.Upload upload, global::System.String @string, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ITestQuery _test; @@ -222,10 +228,11 @@ namespace Foo.Bar public global::Foo.Bar.ITestQuery Test => _test; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ITestQuery Test { get; } @@ -234,7 +241,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -265,7 +273,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -287,7 +296,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -332,7 +342,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -353,7 +364,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -364,7 +376,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_UploadAsArg.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_UploadAsArg.snap index be16f760a7d..13089423c56 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_UploadAsArg.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_UploadAsArg.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResult : global::System.IEquatable, ITestResult { public TestResult(global::System.String? foo) @@ -81,12 +82,14 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestResult { public global::System.String? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -95,7 +98,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQueryDocument : global::StrawberryShake.IDocument { private TestQueryDocument() @@ -116,6 +119,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -124,7 +128,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQuery : global::Foo.Bar.ITestQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -350,6 +354,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -358,17 +363,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::StrawberryShake.Upload upload, global::StrawberryShake.Upload? uploadNullable, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList? listNullable, global::System.Collections.Generic.IReadOnlyList> nestedList, global::System.Collections.Generic.IReadOnlyList?>? nestedListNullable, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.Upload upload, global::StrawberryShake.Upload? uploadNullable, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList? listNullable, global::System.Collections.Generic.IReadOnlyList> nestedList, global::System.Collections.Generic.IReadOnlyList?>? nestedListNullable, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ITestQuery _test; @@ -381,10 +387,11 @@ namespace Foo.Bar public global::Foo.Bar.ITestQuery Test => _test; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ITestQuery Test { get; } @@ -393,7 +400,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -424,7 +432,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -446,7 +455,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -491,7 +501,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -512,7 +523,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -523,7 +535,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_UploadInDeepInputObject.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_UploadInDeepInputObject.snap index 6f12b97e7e0..c83c0fa875c 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_UploadInDeepInputObject.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_UploadInDeepInputObject.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class Test_1Result : global::System.IEquatable, ITestResult { public Test_1Result(global::System.String? foo) @@ -81,13 +82,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestResult { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _barFormatter = default !; @@ -131,6 +134,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Test : global::Foo.Bar.State.ITestInfo, global::System.IEquatable { @@ -199,7 +203,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.ITestInfo.IsFooSet => _set_foo; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BarInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _bazFormatter = default !; @@ -243,6 +248,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Bar : global::Foo.Bar.State.IBarInfo, global::System.IEquatable { @@ -311,7 +317,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IBarInfo.IsFooSet => _set_foo; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BazInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _quxFormatter = default !; @@ -355,6 +362,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Baz : global::Foo.Bar.State.IBazInfo, global::System.IEquatable { @@ -423,7 +431,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IBazInfo.IsFooSet => _set_foo; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class QuxInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _uploadFormatter = default !; @@ -462,6 +471,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Qux : global::Foo.Bar.State.IQuxInfo, global::System.IEquatable { @@ -530,6 +540,7 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IQuxInfo.IsFooSet => _set_foo; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -538,7 +549,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQueryDocument : global::StrawberryShake.IDocument { private TestQueryDocument() @@ -559,6 +570,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -567,7 +579,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQuery : global::Foo.Bar.ITestQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -666,6 +678,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -674,17 +687,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Test input, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Test input, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ITestQuery _test; @@ -697,10 +711,11 @@ namespace Foo.Bar public global::Foo.Bar.ITestQuery Test => _test; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ITestQuery Test { get; } @@ -709,7 +724,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class Test_1ResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -740,7 +756,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class Test_1ResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -762,31 +779,36 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface ITestInfo { global::System.Boolean IsFooSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBarInfo { global::System.Boolean IsFooSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBazInfo { global::System.Boolean IsFooSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IQuxInfo { global::System.Boolean IsFooSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -831,7 +853,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -852,7 +875,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -863,7 +887,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_UploadInInputObject.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_UploadInInputObject.snap index 8e638c61d8d..9b2c6472686 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_UploadInInputObject.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/InputGeneratorTests.Operation_With_UploadInInputObject.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class Test_1Result : global::System.IEquatable, ITestResult { public Test_1Result(global::System.String? foo) @@ -81,13 +82,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestResult { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _uploadFormatter = default !; @@ -126,6 +129,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Test : global::Foo.Bar.State.ITestInfo, global::System.IEquatable { @@ -194,6 +198,7 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.ITestInfo.IsFooSet => _set_foo; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -202,7 +207,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQueryDocument : global::StrawberryShake.IDocument { private TestQueryDocument() @@ -223,6 +228,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -231,7 +237,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestQuery : global::Foo.Bar.ITestQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -300,6 +306,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the Test GraphQL operation /// @@ -308,17 +315,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Test input, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Test input, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ITestQuery _test; @@ -331,10 +339,11 @@ namespace Foo.Bar public global::Foo.Bar.ITestQuery Test => _test; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ITestQuery Test { get; } @@ -343,7 +352,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class Test_1ResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -374,7 +384,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class Test_1ResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -396,13 +407,15 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface ITestInfo { global::System.Boolean IsFooSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -447,7 +460,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -468,7 +482,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -479,7 +494,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Generate_StarWarsIntegrationTest.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Generate_StarWarsIntegrationTest.snap index 33f6eecc48b..58a33141eff 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Generate_StarWarsIntegrationTest.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Generate_StarWarsIntegrationTest.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewResult : global::System.IEquatable, ICreateReviewResult { public CreateReviewResult(global::Foo.Bar.ICreateReview_CreateReview createReview) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReview_CreateReview_Review : global::System.IEquatable, ICreateReview_CreateReview_Review { public CreateReview_CreateReview_Review(global::System.Int32 stars) @@ -138,24 +140,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewResult { public global::Foo.Bar.ICreateReview_CreateReview CreateReview { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReview_CreateReview { public global::System.Int32 Stars { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReview_CreateReview_Review : ICreateReview_CreateReview { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewResult : global::System.IEquatable, IOnReviewResult { public OnReviewResult(global::Foo.Bar.IOnReview_OnReview onReview) @@ -216,7 +222,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReview_OnReview_Review : global::System.IEquatable, IOnReview_OnReview_Review { public OnReview_OnReview_Review(global::System.Int32 stars) @@ -277,23 +284,27 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewResult { public global::Foo.Bar.IOnReview_OnReview OnReview { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReview_OnReview { public global::System.Int32 Stars { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReview_OnReview_Review : IOnReview_OnReview { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the CreateReview GraphQL operation /// @@ -305,7 +316,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutationDocument : global::StrawberryShake.IDocument { private CreateReviewMutationDocument() @@ -326,6 +337,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the CreateReview GraphQL operation /// @@ -337,7 +349,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutation : global::Foo.Bar.ICreateReviewMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -384,6 +396,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the CreateReview GraphQL operation /// @@ -395,13 +408,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Int32 stars, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.Int32 stars, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnReview GraphQL operation /// @@ -413,7 +427,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubscriptionDocument : global::StrawberryShake.IDocument { private OnReviewSubscriptionDocument() @@ -434,6 +448,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnReview GraphQL operation /// @@ -445,7 +460,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubscription : global::Foo.Bar.IOnReviewSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -477,6 +492,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the OnReview GraphQL operation /// @@ -488,16 +504,17 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ICreateReviewMutation _createReview; @@ -513,10 +530,11 @@ namespace Foo.Bar public global::Foo.Bar.IOnReviewSubscription OnReview => _onReview; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ICreateReviewMutation CreateReview { get; } @@ -527,7 +545,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewResultFactory : global::StrawberryShake.IOperationResultDataFactory { public CreateReviewResultFactory() @@ -566,7 +585,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewResultInfo : global::StrawberryShake.IOperationResultDataInfo { public CreateReviewResultInfo(global::Foo.Bar.State.ReviewData createReview) @@ -584,7 +604,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewResultFactory : global::StrawberryShake.IOperationResultDataFactory { public OnReviewResultFactory() @@ -623,7 +644,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewResultInfo : global::StrawberryShake.IOperationResultDataInfo { public OnReviewResultInfo(global::Foo.Bar.State.ReviewData onReview) @@ -641,7 +663,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.Serialization.ILeafValueParser _intParser; @@ -695,7 +718,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.Serialization.ILeafValueParser _intParser; @@ -749,6 +773,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReviewData { @@ -763,7 +788,8 @@ namespace Foo.Bar.State public global::System.Int32? Stars { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.NoStoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.IStoreAccessor { public global::StrawberryShake.IOperationStore OperationStore => throw new global::System.NotSupportedException("OperationStore is not supported in store less mode"); @@ -783,7 +809,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Interface_With_Default_Names.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Interface_With_Default_Names.snap index 6b7a32ae1d4..9836198efb0 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Interface_With_Default_Names.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Interface_With_Default_Names.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::Foo.Bar.IGetHero_Hero? hero) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String name, global::System.Collections.Generic.IReadOnlyList? appearsIn) @@ -156,7 +158,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String name, global::System.Collections.Generic.IReadOnlyList? appearsIn) @@ -231,13 +234,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::Foo.Bar.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero { public global::System.String Name { get; } @@ -245,17 +250,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum Episode { NewHope, @@ -263,7 +271,8 @@ namespace Foo.Bar Jedi } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class EpisodeSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Episode"; @@ -288,6 +297,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -300,7 +310,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -321,6 +331,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -333,7 +344,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::Foo.Bar.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -371,6 +382,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -383,17 +395,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetHeroQuery _getHero; @@ -406,10 +419,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetHeroQuery GetHero { get; } @@ -418,7 +432,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { public GetHeroResultFactory() @@ -466,7 +481,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { public GetHeroResultInfo(global::Foo.Bar.State.ICharacterData? hero) @@ -484,7 +500,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.Serialization.ILeafValueParser _episodeParser; @@ -581,18 +598,21 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ISearchResultData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ICharacterData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidData : ISearchResultData, ICharacterData { @@ -610,6 +630,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanData : ISearchResultData, ICharacterData { @@ -627,7 +648,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.NoStoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.IStoreAccessor { public global::StrawberryShake.IOperationStore OperationStore => throw new global::System.NotSupportedException("OperationStore is not supported in store less mode"); @@ -647,7 +669,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Interface_With_Fragment_Definition_Two_Models.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Interface_With_Fragment_Definition_Two_Models.snap index 8ae40ab58ed..a200174f648 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Interface_With_Fragment_Definition_Two_Models.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Interface_With_Fragment_Definition_Two_Models.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::Foo.Bar.IGetHero_Hero? hero) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String name, global::System.String? primaryFunction, global::Foo.Bar.IGetHero_Hero_Friends? friends) @@ -158,7 +160,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String name, global::System.String? homePlanet, global::Foo.Bar.IGetHero_Hero_Friends? friends) @@ -235,10 +238,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_FriendsConnection : global::System.IEquatable, IGetHero_Hero_Friends_FriendsConnection { public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -312,7 +316,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Droid : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Droid { public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) @@ -373,7 +378,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Human : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Human { public GetHero_Hero_Friends_Nodes_Human(global::System.String name) @@ -434,13 +440,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::Foo.Bar.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IHero { public global::System.String Name { get; } @@ -448,18 +456,21 @@ namespace Foo.Bar public global::Foo.Bar.IGetHero_Hero_Friends? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero : IHero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IDroid { public global::System.String? PrimaryFunction { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IHero_Droid : IDroid { public global::System.String Name { get; } @@ -467,18 +478,21 @@ namespace Foo.Bar public global::Foo.Bar.IGetHero_Hero_Friends? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero, IHero_Droid { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IHuman { public global::System.String? HomePlanet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IHero_Human : IHuman { public global::System.String Name { get; } @@ -486,15 +500,17 @@ namespace Foo.Bar public global::Foo.Bar.IGetHero_Hero_Friends? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero, IHero_Human { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends { /// @@ -503,30 +519,35 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_FriendsConnection : IGetHero_Hero_Friends { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Droid : IGetHero_Hero_Friends_Nodes { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Human : IGetHero_Hero_Friends_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -559,7 +580,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -580,6 +601,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -612,7 +634,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::Foo.Bar.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -650,6 +672,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -682,17 +705,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetHeroQuery _getHero; @@ -705,10 +729,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetHeroQuery GetHero { get; } @@ -717,7 +742,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { public GetHeroResultFactory() @@ -825,7 +851,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { public GetHeroResultInfo(global::Foo.Bar.State.ICharacterData? hero) @@ -843,7 +870,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.Serialization.ILeafValueParser _stringParser; @@ -959,18 +987,21 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ISearchResultData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ICharacterData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidData : ISearchResultData, ICharacterData { @@ -991,6 +1022,7 @@ namespace Foo.Bar.State public global::Foo.Bar.State.FriendsConnectionData? Friends { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanData : ISearchResultData, ICharacterData { @@ -1011,6 +1043,7 @@ namespace Foo.Bar.State public global::Foo.Bar.State.FriendsConnectionData? Friends { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FriendsConnectionData @@ -1027,7 +1060,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.NoStoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.IStoreAccessor { public global::StrawberryShake.IOperationStore OperationStore => throw new global::System.NotSupportedException("OperationStore is not supported in store less mode"); @@ -1047,7 +1081,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Operation_With_Leaf_Argument.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Operation_With_Leaf_Argument.snap index 03959d4a554..acff9f84612 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Operation_With_Leaf_Argument.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Operation_With_Leaf_Argument.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::Foo.Bar.IGetHero_Hero? hero) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String name, global::System.Collections.Generic.IReadOnlyList? appearsIn) @@ -156,7 +158,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String name, global::System.Collections.Generic.IReadOnlyList? appearsIn) @@ -231,13 +234,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::Foo.Bar.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero { public global::System.String Name { get; } @@ -245,17 +250,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum Episode { NewHope, @@ -263,7 +271,8 @@ namespace Foo.Bar Jedi } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class EpisodeSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Episode"; @@ -288,6 +297,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -300,7 +310,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -321,6 +331,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -333,7 +344,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::Foo.Bar.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -387,6 +398,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -399,17 +411,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Episode? episode, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Episode? episode, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetHeroQuery _getHero; @@ -422,10 +435,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetHeroQuery GetHero { get; } @@ -434,7 +448,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { public GetHeroResultFactory() @@ -482,7 +497,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { public GetHeroResultInfo(global::Foo.Bar.State.ICharacterData? hero) @@ -500,7 +516,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.Serialization.ILeafValueParser _episodeParser; @@ -597,18 +614,21 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ISearchResultData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ICharacterData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidData : ISearchResultData, ICharacterData { @@ -626,6 +646,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanData : ISearchResultData, ICharacterData { @@ -643,7 +664,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.NoStoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.IStoreAccessor { public global::StrawberryShake.IOperationStore OperationStore => throw new global::System.NotSupportedException("OperationStore is not supported in store less mode"); @@ -663,7 +685,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Operation_With_Type_Argument.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Operation_With_Type_Argument.snap index 3e011afde7f..00d63616cf8 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Operation_With_Type_Argument.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Operation_With_Type_Argument.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutResult : global::System.IEquatable, ICreateReviewMutResult { public CreateReviewMutResult(global::Foo.Bar.ICreateReviewMut_CreateReview createReview) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMut_CreateReview_Review : global::System.IEquatable, ICreateReviewMut_CreateReview_Review { public CreateReviewMut_CreateReview_Review(global::System.Int32 stars, global::System.String? commentary) @@ -146,13 +148,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMutResult { public global::Foo.Bar.ICreateReviewMut_CreateReview CreateReview { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMut_CreateReview { public global::System.Int32 Stars { get; } @@ -160,12 +164,14 @@ namespace Foo.Bar public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMut_CreateReview_Review : ICreateReviewMut_CreateReview { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReviewInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _intFormatter = default !; @@ -223,6 +229,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReviewInput : global::Foo.Bar.State.IReviewInputInfo, global::System.IEquatable { @@ -309,7 +316,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IReviewInputInfo.IsCommentarySet => _set_commentary; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum Episode { NewHope, @@ -317,7 +325,8 @@ namespace Foo.Bar Jedi } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class EpisodeSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Episode"; @@ -342,6 +351,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the CreateReviewMut GraphQL operation /// @@ -354,7 +364,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutMutationDocument : global::StrawberryShake.IDocument { private CreateReviewMutMutationDocument() @@ -375,6 +385,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the CreateReviewMut GraphQL operation /// @@ -387,7 +398,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutMutation : global::Foo.Bar.ICreateReviewMutMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -447,6 +458,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the CreateReviewMut GraphQL operation /// @@ -459,17 +471,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMutMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Episode episode, global::Foo.Bar.ReviewInput review, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Episode episode, global::Foo.Bar.ReviewInput review, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ICreateReviewMutMutation _createReviewMut; @@ -482,10 +495,11 @@ namespace Foo.Bar public global::Foo.Bar.ICreateReviewMutMutation CreateReviewMut => _createReviewMut; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ICreateReviewMutMutation CreateReviewMut { get; } @@ -494,7 +508,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutResultFactory : global::StrawberryShake.IOperationResultDataFactory { public CreateReviewMutResultFactory() @@ -533,7 +548,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutResultInfo : global::StrawberryShake.IOperationResultDataInfo { public CreateReviewMutResultInfo(global::Foo.Bar.State.ReviewData createReview) @@ -551,6 +567,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IReviewInputInfo { @@ -559,7 +576,8 @@ namespace Foo.Bar.State global::System.Boolean IsCommentarySet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.Serialization.ILeafValueParser _episodeParser; @@ -632,6 +650,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReviewData { @@ -649,7 +668,8 @@ namespace Foo.Bar.State public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.NoStoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.IStoreAccessor { public global::StrawberryShake.IOperationStore OperationStore => throw new global::System.NotSupportedException("OperationStore is not supported in store less mode"); @@ -669,7 +689,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.StarWarsTypeNameOnUnions.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.StarWarsTypeNameOnUnions.snap index 0b42c8399a1..3538d93c94e 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.StarWarsTypeNameOnUnions.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.StarWarsTypeNameOnUnions.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResult : global::System.IEquatable, ISearchHeroResult { public SearchHeroResult(global::System.Collections.Generic.IReadOnlyList? search) @@ -87,7 +88,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Starship : global::System.IEquatable, ISearchHero_Search_Starship { public SearchHero_Search_Starship(global::System.String __typename) @@ -151,7 +153,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Human : global::System.IEquatable, ISearchHero_Search_Human { public SearchHero_Search_Human(global::System.String __typename) @@ -215,7 +218,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Droid : global::System.IEquatable, ISearchHero_Search_Droid { public SearchHero_Search_Droid(global::System.String __typename) @@ -279,33 +283,39 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHeroResult { public global::System.Collections.Generic.IReadOnlyList? Search { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search { public global::System.String __typename { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Starship : ISearchHero_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Human : ISearchHero_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Droid : ISearchHero_Search { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -316,7 +326,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroQueryDocument : global::StrawberryShake.IDocument { private SearchHeroQueryDocument() @@ -337,6 +347,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -347,7 +358,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroQuery : global::Foo.Bar.ISearchHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -385,6 +396,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -395,17 +407,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ISearchHeroQuery _searchHero; @@ -418,10 +431,11 @@ namespace Foo.Bar public global::Foo.Bar.ISearchHeroQuery SearchHero => _searchHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ISearchHeroQuery SearchHero { get; } @@ -430,7 +444,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { public SearchHeroResultFactory() @@ -498,7 +513,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { public SearchHeroResultInfo(global::System.Collections.Generic.IReadOnlyList? search) @@ -516,7 +532,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.Serialization.ILeafValueParser _stringParser; @@ -601,12 +618,14 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ISearchResultData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class StarshipData : ISearchResultData { @@ -618,12 +637,14 @@ namespace Foo.Bar.State public global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ICharacterData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanData : ISearchResultData, ICharacterData { @@ -635,6 +656,7 @@ namespace Foo.Bar.State public global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidData : ISearchResultData, ICharacterData { @@ -646,7 +668,8 @@ namespace Foo.Bar.State public global::System.String __typename { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.NoStoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.IStoreAccessor { public global::StrawberryShake.IOperationStore OperationStore => throw new global::System.NotSupportedException("OperationStore is not supported in store less mode"); @@ -666,7 +689,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.StarWarsUnionList.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.StarWarsUnionList.snap index b3c3204a271..ad8f01decfb 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.StarWarsUnionList.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.StarWarsUnionList.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResult : global::System.IEquatable, ISearchHeroResult { public SearchHeroResult(global::System.Collections.Generic.IReadOnlyList? search) @@ -87,7 +88,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Starship : global::System.IEquatable, ISearchHero_Search_Starship { public SearchHero_Search_Starship() @@ -144,7 +146,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Human : global::System.IEquatable, ISearchHero_Search_Human { public SearchHero_Search_Human(global::System.String name) @@ -205,7 +208,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Droid : global::System.IEquatable, ISearchHero_Search_Droid { public SearchHero_Search_Droid(global::System.String name) @@ -266,34 +270,40 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHeroResult { public global::System.Collections.Generic.IReadOnlyList? Search { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Starship : ISearchHero_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Human : ISearchHero_Search { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Droid : ISearchHero_Search { public global::System.String Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -310,7 +320,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroQueryDocument : global::StrawberryShake.IDocument { private SearchHeroQueryDocument() @@ -331,6 +341,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -347,7 +358,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroQuery : global::Foo.Bar.ISearchHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -385,6 +396,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -401,17 +413,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ISearchHeroQuery _searchHero; @@ -424,10 +437,11 @@ namespace Foo.Bar public global::Foo.Bar.ISearchHeroQuery SearchHero => _searchHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ISearchHeroQuery SearchHero { get; } @@ -436,7 +450,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { public SearchHeroResultFactory() @@ -504,7 +519,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { public SearchHeroResultInfo(global::System.Collections.Generic.IReadOnlyList? search) @@ -522,7 +538,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.Serialization.ILeafValueParser _stringParser; @@ -607,12 +624,14 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ISearchResultData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class StarshipData : ISearchResultData { @@ -624,12 +643,14 @@ namespace Foo.Bar.State public global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface ICharacterData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanData : ISearchResultData, ICharacterData { @@ -644,6 +665,7 @@ namespace Foo.Bar.State public global::System.String? Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidData : ISearchResultData, ICharacterData { @@ -658,7 +680,8 @@ namespace Foo.Bar.State public global::System.String? Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.NoStoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.IStoreAccessor { public global::StrawberryShake.IOperationStore OperationStore => throw new global::System.NotSupportedException("OperationStore is not supported in store less mode"); @@ -678,7 +701,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Subscription_With_Default_Names.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Subscription_With_Default_Names.snap index fd01243dcb7..7f20d62a5f1 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Subscription_With_Default_Names.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/NoStoreStarWarsGeneratorTests.Subscription_With_Default_Names.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResult : global::System.IEquatable, IOnReviewSubResult { public OnReviewSubResult(global::Foo.Bar.IOnReviewSub_OnReview onReview) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSub_OnReview_Review : global::System.IEquatable, IOnReviewSub_OnReview_Review { public OnReviewSub_OnReview_Review(global::System.Int32 stars, global::System.String? commentary) @@ -146,13 +148,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubResult { public global::Foo.Bar.IOnReviewSub_OnReview OnReview { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSub_OnReview { public global::System.Int32 Stars { get; } @@ -160,11 +164,13 @@ namespace Foo.Bar public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSub_OnReview_Review : IOnReviewSub_OnReview { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -177,7 +183,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubSubscriptionDocument : global::StrawberryShake.IDocument { private OnReviewSubSubscriptionDocument() @@ -198,6 +204,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -210,7 +217,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubSubscription : global::Foo.Bar.IOnReviewSubSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -242,6 +249,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -254,16 +262,17 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IOnReviewSubSubscription _onReviewSub; @@ -276,10 +285,11 @@ namespace Foo.Bar public global::Foo.Bar.IOnReviewSubSubscription OnReviewSub => _onReviewSub; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IOnReviewSubSubscription OnReviewSub { get; } @@ -288,7 +298,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResultFactory : global::StrawberryShake.IOperationResultDataFactory { public OnReviewSubResultFactory() @@ -327,7 +338,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResultInfo : global::StrawberryShake.IOperationResultDataInfo { public OnReviewSubResultInfo(global::Foo.Bar.State.ReviewData onReview) @@ -345,7 +357,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.Serialization.ILeafValueParser _intParser; @@ -416,6 +429,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReviewData { @@ -433,7 +447,8 @@ namespace Foo.Bar.State public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.NoStoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.IStoreAccessor { public global::StrawberryShake.IOperationStore OperationStore => throw new global::System.NotSupportedException("OperationStore is not supported in store less mode"); @@ -453,7 +468,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Generate_ChatClient_AllOperations.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Generate_ChatClient_AllOperations.snap index 7d145fdc9ff..675584bb68e 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Generate_ChatClient_AllOperations.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Generate_ChatClient_AllOperations.snap @@ -16,10 +16,11 @@ namespace Foo.Bar { + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResult : global::System.IEquatable, IGetPeopleResult { public GetPeopleResult(global::Foo.Bar.IGetPeople_People? people) @@ -87,10 +88,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_PersonConnection : global::System.IEquatable, IGetPeople_People_PersonConnection { public GetPeople_People_PersonConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -164,10 +166,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_Person : global::System.IEquatable, IGetPeople_People_Nodes_Person { public GetPeople_People_Nodes_Person(global::System.String name, global::System.String email, global::System.Boolean isOnline, global::System.Uri? imageUri, global::System.DateTimeOffset lastSeen) @@ -263,10 +266,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleResult { /// @@ -275,10 +279,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeople_People? People { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People { /// @@ -287,18 +292,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_PersonConnection : IGetPeople_People { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IParticipant { /// @@ -317,10 +324,11 @@ namespace Foo.Bar public global::System.Boolean IsOnline { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPerson : IParticipant { /// @@ -334,26 +342,29 @@ namespace Foo.Bar public global::System.DateTimeOffset LastSeen { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes : IPerson { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeople_People_Nodes_Person : IGetPeople_People_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessagesResult : global::System.IEquatable, IGetMessagesResult { public GetMessagesResult(global::Foo.Bar.IGetMessages_PersonByEmail personByEmail) @@ -417,10 +428,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessages_PersonByEmail_Person : global::System.IEquatable, IGetMessages_PersonByEmail_Person { public GetMessages_PersonByEmail_Person(global::Foo.Bar.IGetMessages_PersonByEmail_Messages? messages) @@ -488,10 +500,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessages_PersonByEmail_Messages_MessageConnection : global::System.IEquatable, IGetMessages_PersonByEmail_Messages_MessageConnection { public GetMessages_PersonByEmail_Messages_MessageConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -565,10 +578,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessages_PersonByEmail_Messages_Nodes_Message : global::System.IEquatable, IGetMessages_PersonByEmail_Messages_Nodes_Message { public GetMessages_PersonByEmail_Messages_Nodes_Message(global::System.String id, global::System.String text, global::Foo.Bar.Direction direction, global::Foo.Bar.IGetMessages_PersonByEmail_Messages_Nodes_Recipient recipient, global::Foo.Bar.IGetMessages_PersonByEmail_Messages_Nodes_Sender sender, global::System.DateTimeOffset sent) @@ -667,10 +681,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessages_PersonByEmail_Messages_Nodes_Recipient_Person : global::System.IEquatable, IGetMessages_PersonByEmail_Messages_Nodes_Recipient_Person { public GetMessages_PersonByEmail_Messages_Nodes_Recipient_Person(global::System.String name, global::System.String email, global::System.Boolean isOnline) @@ -748,10 +763,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessages_PersonByEmail_Messages_Nodes_Sender_Person : global::System.IEquatable, IGetMessages_PersonByEmail_Messages_Nodes_Sender_Person { public GetMessages_PersonByEmail_Messages_Nodes_Sender_Person(global::System.String name, global::System.String email, global::System.Boolean isOnline) @@ -829,10 +845,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type Query /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetMessagesResult { /// @@ -841,10 +858,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetMessages_PersonByEmail PersonByEmail { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetMessages_PersonByEmail { /// @@ -853,18 +871,20 @@ namespace Foo.Bar public global::Foo.Bar.IGetMessages_PersonByEmail_Messages? Messages { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetMessages_PersonByEmail_Person : IGetMessages_PersonByEmail { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetMessages_PersonByEmail_Messages { /// @@ -873,18 +893,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetMessages_PersonByEmail_Messages_MessageConnection : IGetMessages_PersonByEmail_Messages { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IMessage { /// @@ -918,58 +940,65 @@ namespace Foo.Bar public global::System.DateTimeOffset Sent { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetMessages_PersonByEmail_Messages_Nodes : IMessage { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetMessages_PersonByEmail_Messages_Nodes_Message : IGetMessages_PersonByEmail_Messages_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetMessages_PersonByEmail_Messages_Nodes_Recipient : IParticipant { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetMessages_PersonByEmail_Messages_Nodes_Recipient_Person : IGetMessages_PersonByEmail_Messages_Nodes_Recipient { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetMessages_PersonByEmail_Messages_Nodes_Sender : IParticipant { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetMessages_PersonByEmail_Messages_Nodes_Sender_Person : IGetMessages_PersonByEmail_Messages_Nodes_Sender { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type Mutation /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInput_1Result : global::System.IEquatable, ISendMessageInputResult { public SendMessageInput_1Result(global::Foo.Bar.ISendMessageInput_SendMessage sendMessage) @@ -1033,10 +1062,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type SendMessagePayload /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInput_SendMessage_SendMessagePayload : global::System.IEquatable, ISendMessageInput_SendMessage_SendMessagePayload { public SendMessageInput_SendMessage_SendMessagePayload(global::Foo.Bar.ISendMessageInput_SendMessage_Message message) @@ -1100,10 +1130,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInput_SendMessage_Message_Message : global::System.IEquatable, ISendMessageInput_SendMessage_Message_Message { public SendMessageInput_SendMessage_Message_Message(global::System.String id, global::System.String text, global::Foo.Bar.Direction direction, global::Foo.Bar.IGetMessages_PersonByEmail_Messages_Nodes_Recipient recipient, global::Foo.Bar.IGetMessages_PersonByEmail_Messages_Nodes_Sender sender, global::System.DateTimeOffset sent) @@ -1202,10 +1233,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInput_SendMessage_Message_Recipient_Person : global::System.IEquatable, ISendMessageInput_SendMessage_Message_Recipient_Person { public SendMessageInput_SendMessage_Message_Recipient_Person(global::System.String name, global::System.String email, global::System.Boolean isOnline) @@ -1283,10 +1315,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInput_SendMessage_Message_Sender_Person : global::System.IEquatable, ISendMessageInput_SendMessage_Message_Sender_Person { public SendMessageInput_SendMessage_Message_Sender_Person(global::System.String name, global::System.String email, global::System.Boolean isOnline) @@ -1364,10 +1397,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type Mutation /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageInputResult { /// @@ -1376,10 +1410,11 @@ namespace Foo.Bar public global::Foo.Bar.ISendMessageInput_SendMessage SendMessage { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type SendMessagePayload /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageInput_SendMessage { /// @@ -1388,66 +1423,74 @@ namespace Foo.Bar public global::Foo.Bar.ISendMessageInput_SendMessage_Message Message { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type SendMessagePayload /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageInput_SendMessage_SendMessagePayload : ISendMessageInput_SendMessage { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageInput_SendMessage_Message : IMessage { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageInput_SendMessage_Message_Message : ISendMessageInput_SendMessage_Message { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageInput_SendMessage_Message_Recipient : IParticipant { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageInput_SendMessage_Message_Recipient_Person : ISendMessageInput_SendMessage_Message_Recipient { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageInput_SendMessage_Message_Sender : IParticipant { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageInput_SendMessage_Message_Sender_Person : ISendMessageInput_SendMessage_Message_Sender { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type Mutation /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageMutResult : global::System.IEquatable, ISendMessageMutResult { public SendMessageMutResult(global::Foo.Bar.ISendMessageMut_SendMessage sendMessage) @@ -1511,10 +1554,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type SendMessagePayload /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageMut_SendMessage_SendMessagePayload : global::System.IEquatable, ISendMessageMut_SendMessage_SendMessagePayload { public SendMessageMut_SendMessage_SendMessagePayload(global::Foo.Bar.ISendMessageMut_SendMessage_Message message) @@ -1578,10 +1622,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageMut_SendMessage_Message_Message : global::System.IEquatable, ISendMessageMut_SendMessage_Message_Message { public SendMessageMut_SendMessage_Message_Message(global::System.String id, global::System.String text, global::Foo.Bar.Direction direction, global::Foo.Bar.IGetMessages_PersonByEmail_Messages_Nodes_Recipient recipient, global::Foo.Bar.IGetMessages_PersonByEmail_Messages_Nodes_Sender sender, global::System.DateTimeOffset sent) @@ -1680,10 +1725,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageMut_SendMessage_Message_Recipient_Person : global::System.IEquatable, ISendMessageMut_SendMessage_Message_Recipient_Person { public SendMessageMut_SendMessage_Message_Recipient_Person(global::System.String name, global::System.String email, global::System.Boolean isOnline) @@ -1761,10 +1807,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageMut_SendMessage_Message_Sender_Person : global::System.IEquatable, ISendMessageMut_SendMessage_Message_Sender_Person { public SendMessageMut_SendMessage_Message_Sender_Person(global::System.String name, global::System.String email, global::System.Boolean isOnline) @@ -1842,10 +1889,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type Mutation /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageMutResult { /// @@ -1854,10 +1902,11 @@ namespace Foo.Bar public global::Foo.Bar.ISendMessageMut_SendMessage SendMessage { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type SendMessagePayload /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageMut_SendMessage { /// @@ -1866,66 +1915,74 @@ namespace Foo.Bar public global::Foo.Bar.ISendMessageMut_SendMessage_Message Message { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type SendMessagePayload /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageMut_SendMessage_SendMessagePayload : ISendMessageMut_SendMessage { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageMut_SendMessage_Message : IMessage { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageMut_SendMessage_Message_Message : ISendMessageMut_SendMessage_Message { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageMut_SendMessage_Message_Recipient : IParticipant { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageMut_SendMessage_Message_Recipient_Person : ISendMessageMut_SendMessage_Message_Recipient { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageMut_SendMessage_Message_Sender : IParticipant { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageMut_SendMessage_Message_Sender_Person : ISendMessageMut_SendMessage_Message_Sender { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type SubscriptionType /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadMessagesResult : global::System.IEquatable, IReadMessagesResult { public ReadMessagesResult(global::Foo.Bar.IReadMessages_Message message) @@ -1989,10 +2046,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadMessages_Message_Message : global::System.IEquatable, IReadMessages_Message_Message { public ReadMessages_Message_Message(global::System.String id, global::System.String text, global::Foo.Bar.Direction direction, global::Foo.Bar.IGetMessages_PersonByEmail_Messages_Nodes_Recipient recipient, global::Foo.Bar.IGetMessages_PersonByEmail_Messages_Nodes_Sender sender, global::System.DateTimeOffset sent) @@ -2091,10 +2149,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadMessages_Message_Recipient_Person : global::System.IEquatable, IReadMessages_Message_Recipient_Person { public ReadMessages_Message_Recipient_Person(global::System.String name, global::System.String email, global::System.Boolean isOnline) @@ -2172,10 +2231,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadMessages_Message_Sender_Person : global::System.IEquatable, IReadMessages_Message_Sender_Person { public ReadMessages_Message_Sender_Person(global::System.String name, global::System.String email, global::System.Boolean isOnline) @@ -2253,10 +2313,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type SubscriptionType /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadMessagesResult { /// @@ -2265,55 +2326,62 @@ namespace Foo.Bar public global::Foo.Bar.IReadMessages_Message Message { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadMessages_Message : IMessage { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type message /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadMessages_Message_Message : IReadMessages_Message { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadMessages_Message_Recipient : IParticipant { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadMessages_Message_Recipient_Person : IReadMessages_Message_Recipient { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadMessages_Message_Sender : IParticipant { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Type person /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadMessages_Message_Sender_Person : IReadMessages_Message_Sender { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringFormatter = default !; @@ -2389,6 +2457,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class SendMessageInput : global::Foo.Bar.State.ISendMessageInputInfo, global::System.IEquatable { @@ -2491,10 +2560,11 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.ISendMessageInputInfo.IsTextSet => _set_text; } + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator /// /// enum Direction /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum Direction { /// @@ -2507,7 +2577,8 @@ namespace Foo.Bar Outgoing } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class DirectionSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Direction"; @@ -2530,6 +2601,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -2559,7 +2631,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleQueryDocument : global::StrawberryShake.IDocument { private GetPeopleQueryDocument() @@ -2580,6 +2652,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -2609,7 +2682,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleQuery : global::Foo.Bar.IGetPeopleQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -2647,6 +2720,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPeople GraphQL operation /// @@ -2676,13 +2750,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetMessages GraphQL operation /// @@ -2733,7 +2808,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessagesQueryDocument : global::StrawberryShake.IDocument { private GetMessagesQueryDocument() @@ -2754,6 +2829,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetMessages GraphQL operation /// @@ -2804,7 +2880,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessagesQuery : global::Foo.Bar.IGetMessagesQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -2856,6 +2932,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetMessages GraphQL operation /// @@ -2906,13 +2983,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetMessagesQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.String email, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.String email, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SendMessageInput GraphQL operation /// @@ -2957,7 +3035,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInputMutationDocument : global::StrawberryShake.IDocument { private SendMessageInputMutationDocument() @@ -2978,6 +3056,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SendMessageInput GraphQL operation /// @@ -3022,7 +3101,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInputMutation : global::Foo.Bar.ISendMessageInputMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -3074,6 +3153,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the SendMessageInput GraphQL operation /// @@ -3118,13 +3198,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageInputMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.SendMessageInput input, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.SendMessageInput input, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SendMessageMut GraphQL operation /// @@ -3169,7 +3250,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageMutMutationDocument : global::StrawberryShake.IDocument { private SendMessageMutMutationDocument() @@ -3190,6 +3271,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SendMessageMut GraphQL operation /// @@ -3234,7 +3316,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageMutMutation : global::Foo.Bar.ISendMessageMutMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -3297,6 +3379,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the SendMessageMut GraphQL operation /// @@ -3341,13 +3424,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISendMessageMutMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.String email, global::System.String text, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.String email, global::System.String text, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the ReadMessages GraphQL operation /// @@ -3389,7 +3473,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadMessagesSubscriptionDocument : global::StrawberryShake.IDocument { private ReadMessagesSubscriptionDocument() @@ -3410,6 +3494,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the ReadMessages GraphQL operation /// @@ -3451,7 +3536,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadMessagesSubscription : global::Foo.Bar.IReadMessagesSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -3483,6 +3568,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the ReadMessages GraphQL operation /// @@ -3524,16 +3610,17 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IReadMessagesSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPeopleQuery _getPeople; @@ -3558,10 +3645,11 @@ namespace Foo.Bar public global::Foo.Bar.IReadMessagesSubscription ReadMessages => _readMessages; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPeopleQuery GetPeople { get; } @@ -3578,6 +3666,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator ///Type person [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity @@ -3611,6 +3700,7 @@ namespace Foo.Bar.State public global::Foo.Bar.State.MessageConnectionData? Messages { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator ///Type message [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class MessageEntity @@ -3644,7 +3734,8 @@ namespace Foo.Bar.State public global::System.DateTimeOffset Sent { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3728,7 +3819,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -3753,7 +3845,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessagesResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3796,7 +3889,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessagesResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -3821,7 +3915,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInput_1ResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3903,7 +3998,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInput_1ResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -3928,7 +4024,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageMutResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -4010,7 +4107,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageMutResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -4035,7 +4133,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadMessagesResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -4078,7 +4177,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadMessagesResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -4103,6 +4203,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface ISendMessageInputInfo { @@ -4113,7 +4214,8 @@ namespace Foo.Bar.State global::System.Boolean IsTextSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -4282,7 +4384,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessagesBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -4546,7 +4649,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInputBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -4758,7 +4862,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageMutBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -4970,7 +5075,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadMessagesBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5161,6 +5267,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonConnectionData @@ -5177,6 +5284,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class MessageConnectionData @@ -5193,6 +5301,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///Type SendMessagePayload [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class SendMessagePayloadData @@ -5209,7 +5318,8 @@ namespace Foo.Bar.State public global::StrawberryShake.EntityId? Message { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeople_People_Nodes_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5229,7 +5339,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessages_PersonByEmail_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5326,7 +5437,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessages_PersonByEmail_Messages_Nodes_MessageFromMessageEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5370,7 +5482,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessages_PersonByEmail_Messages_Nodes_Recipient_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5390,7 +5503,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetMessages_PersonByEmail_Messages_Nodes_Sender_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5410,7 +5524,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInput_SendMessage_Message_MessageFromMessageEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5454,7 +5569,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInput_SendMessage_Message_Recipient_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5474,7 +5590,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageInput_SendMessage_Message_Sender_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5494,7 +5611,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageMut_SendMessage_Message_MessageFromMessageEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5538,7 +5656,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageMut_SendMessage_Message_Recipient_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5558,7 +5677,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SendMessageMut_SendMessage_Message_Sender_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5578,7 +5698,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadMessages_Message_MessageFromMessageEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5622,7 +5743,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadMessages_Message_Recipient_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5642,7 +5764,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadMessages_Message_Sender_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -5662,7 +5785,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -5721,7 +5845,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -5732,7 +5857,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.NonNullableValueType_WithoutGlobal_Input.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.NonNullableValueType_WithoutGlobal_Input.snap index c2c04052fd1..7cc5d64602c 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.NonNullableValueType_WithoutGlobal_Input.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.NonNullableValueType_WithoutGlobal_Input.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResult : global::System.IEquatable, IGetSomethingResult { public GetSomethingResult(global::System.String? foo) @@ -81,13 +82,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSomethingResult { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BarInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _intPtrFormatter = default !; @@ -126,6 +129,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Bar : global::Foo.Bar.State.IBarInfo, global::System.IEquatable { @@ -194,6 +198,7 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IBarInfo.IsNonNullablePtrSet => _set_nonNullablePtr; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -202,7 +207,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingQueryDocument : global::StrawberryShake.IDocument { private GetSomethingQueryDocument() @@ -223,6 +228,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -231,7 +237,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingQuery : global::Foo.Bar.IGetSomethingQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -285,6 +291,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -293,17 +300,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSomethingQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Bar? bar, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Bar? bar, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetSomethingQuery _getSomething; @@ -316,10 +324,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetSomethingQuery GetSomething => _getSomething; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetSomethingQuery GetSomething { get; } @@ -328,7 +337,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -359,7 +369,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -381,13 +392,15 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBarInfo { global::System.Boolean IsNonNullablePtrSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -432,7 +445,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -453,7 +467,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -464,7 +479,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.NonNullable_ValueType_Input.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.NonNullable_ValueType_Input.snap index c2c04052fd1..7cc5d64602c 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.NonNullable_ValueType_Input.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.NonNullable_ValueType_Input.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResult : global::System.IEquatable, IGetSomethingResult { public GetSomethingResult(global::System.String? foo) @@ -81,13 +82,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSomethingResult { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BarInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _intPtrFormatter = default !; @@ -126,6 +129,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Bar : global::Foo.Bar.State.IBarInfo, global::System.IEquatable { @@ -194,6 +198,7 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IBarInfo.IsNonNullablePtrSet => _set_nonNullablePtr; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -202,7 +207,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingQueryDocument : global::StrawberryShake.IDocument { private GetSomethingQueryDocument() @@ -223,6 +228,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -231,7 +237,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingQuery : global::Foo.Bar.IGetSomethingQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -285,6 +291,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -293,17 +300,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSomethingQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Bar? bar, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Bar? bar, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetSomethingQuery _getSomething; @@ -316,10 +324,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetSomethingQuery GetSomething => _getSomething; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetSomethingQuery GetSomething { get; } @@ -328,7 +337,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -359,7 +369,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -381,13 +392,15 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBarInfo { global::System.Boolean IsNonNullablePtrSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -432,7 +445,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -453,7 +467,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -464,7 +479,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Nullable_List_Input.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Nullable_List_Input.snap index 1931af9c071..16f7c540672 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Nullable_List_Input.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Nullable_List_Input.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResult : global::System.IEquatable, IGetSomethingResult { public GetSomethingResult(global::System.String? foo) @@ -81,13 +82,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSomethingResult { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BarInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _bazFormatter = default !; @@ -146,6 +149,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Bar : global::Foo.Bar.State.IBarInfo, global::System.IEquatable { @@ -224,7 +228,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IBarInfo.IsBazSet => _set_baz; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BazInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringFormatter = default !; @@ -270,6 +275,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Baz : global::Foo.Bar.State.IBazInfo, global::System.IEquatable { @@ -342,6 +348,7 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IBazInfo.IsQuxSet => _set_qux; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -350,7 +357,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingQueryDocument : global::StrawberryShake.IDocument { private GetSomethingQueryDocument() @@ -371,6 +378,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -379,7 +387,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingQuery : global::Foo.Bar.IGetSomethingQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -433,6 +441,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -441,17 +450,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSomethingQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Bar? bar, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Bar? bar, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetSomethingQuery _getSomething; @@ -464,10 +474,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetSomethingQuery GetSomething => _getSomething; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetSomethingQuery GetSomething { get; } @@ -476,7 +487,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -507,7 +519,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -529,19 +542,22 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBarInfo { global::System.Boolean IsBazSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBazInfo { global::System.Boolean IsQuxSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -584,7 +600,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -605,7 +622,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -616,7 +634,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Nullable_ValueType_Input.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Nullable_ValueType_Input.snap index f0630cd6ebb..f258b3f5679 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Nullable_ValueType_Input.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Nullable_ValueType_Input.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResult : global::System.IEquatable, IGetSomethingResult { public GetSomethingResult(global::System.String? foo) @@ -81,13 +82,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSomethingResult { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BarInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _intPtrFormatter = default !; @@ -133,6 +136,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Bar : global::Foo.Bar.State.IBarInfo, global::System.IEquatable { @@ -205,6 +209,7 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IBarInfo.IsNullablePtrSet => _set_nullablePtr; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -213,7 +218,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingQueryDocument : global::StrawberryShake.IDocument { private GetSomethingQueryDocument() @@ -234,6 +239,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -242,7 +248,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingQuery : global::Foo.Bar.IGetSomethingQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -296,6 +302,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -304,17 +311,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSomethingQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Bar? bar, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Bar? bar, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetSomethingQuery _getSomething; @@ -327,10 +335,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetSomethingQuery GetSomething => _getSomething; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetSomethingQuery GetSomething { get; } @@ -339,7 +348,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -370,7 +380,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -392,13 +403,15 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBarInfo { global::System.Boolean IsNullablePtrSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -443,7 +456,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -464,7 +478,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -475,7 +490,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Operation_With_MultipleOperations.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Operation_With_MultipleOperations.snap index 7383612a84a..afe2655ebd5 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Operation_With_MultipleOperations.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Operation_With_MultipleOperations.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperationResult : global::System.IEquatable, ITestOperationResult { public TestOperationResult(global::System.String? foo) @@ -81,13 +82,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestOperationResult { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperation2Result : global::System.IEquatable, ITestOperation2Result { public TestOperation2Result(global::System.String? foo) @@ -152,13 +155,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestOperation2Result { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperation3Result : global::System.IEquatable, ITestOperation3Result { public TestOperation3Result(global::System.String? foo) @@ -223,13 +228,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestOperation3Result { public global::System.String? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class BarInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringFormatter = default !; @@ -378,6 +385,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Bar : global::Foo.Bar.State.IBarInfo, global::System.IEquatable { @@ -530,6 +538,7 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IBarInfo.IsNestedMatrixSet => _set_nestedMatrix; } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the TestOperation GraphQL operation /// @@ -538,7 +547,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperationQueryDocument : global::StrawberryShake.IDocument { private TestOperationQueryDocument() @@ -559,6 +568,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the TestOperation GraphQL operation /// @@ -567,7 +577,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperationQuery : global::Foo.Bar.ITestOperationQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -678,6 +688,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the TestOperation GraphQL operation /// @@ -686,13 +697,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestOperationQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Bar single, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList?>? nestedList, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Bar single, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList?>? nestedList, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the TestOperation2 GraphQL operation /// @@ -701,7 +713,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperation2QueryDocument : global::StrawberryShake.IDocument { private TestOperation2QueryDocument() @@ -722,6 +734,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the TestOperation2 GraphQL operation /// @@ -730,7 +743,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperation2Query : global::Foo.Bar.ITestOperation2Query { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -841,6 +854,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the TestOperation2 GraphQL operation /// @@ -849,13 +863,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestOperation2Query : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Bar single, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList?>? nestedList, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Bar single, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList?>? nestedList, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the TestOperation3 GraphQL operation /// @@ -864,7 +879,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperation3QueryDocument : global::StrawberryShake.IDocument { private TestOperation3QueryDocument() @@ -885,6 +900,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the TestOperation3 GraphQL operation /// @@ -893,7 +909,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperation3Query : global::Foo.Bar.ITestOperation3Query { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -1004,6 +1020,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the TestOperation3 GraphQL operation /// @@ -1012,17 +1029,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITestOperation3Query : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Bar single, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList?>? nestedList, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Bar single, global::System.Collections.Generic.IReadOnlyList list, global::System.Collections.Generic.IReadOnlyList?>? nestedList, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ITestOperationQuery _testOperation; @@ -1041,10 +1059,11 @@ namespace Foo.Bar public global::Foo.Bar.ITestOperation3Query TestOperation3 => _testOperation3; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ITestOperationQuery TestOperation { get; } @@ -1057,7 +1076,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperationResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1088,7 +1108,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperationResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1110,7 +1131,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperation2ResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1141,7 +1163,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperation2ResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1163,7 +1186,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperation3ResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1194,7 +1218,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperation3ResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1216,6 +1241,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBarInfo { @@ -1230,7 +1256,8 @@ namespace Foo.Bar.State global::System.Boolean IsNestedMatrixSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperationBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1273,7 +1300,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperation2Builder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1316,7 +1344,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TestOperation3Builder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1359,7 +1388,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1380,7 +1410,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1391,7 +1422,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Response_Name_Is_Correctly_Cased.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Response_Name_Is_Correctly_Cased.snap index ec341153d25..ce62467faff 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Response_Name_Is_Correctly_Cased.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/OperationGeneratorTests.Response_Name_Is_Correctly_Cased.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResult : global::System.IEquatable, IGetSomethingResult { public GetSomethingResult(global::System.String? bar_Baz_Foo) @@ -81,12 +82,14 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSomethingResult { public global::System.String? Bar_baz_foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -95,7 +98,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingQueryDocument : global::StrawberryShake.IDocument { private GetSomethingQueryDocument() @@ -116,6 +119,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -124,7 +128,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingQuery : global::Foo.Bar.IGetSomethingQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -162,6 +166,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetSomething GraphQL operation /// @@ -170,17 +175,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSomethingQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetSomethingQuery _getSomething; @@ -193,10 +199,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetSomethingQuery GetSomething => _getSomething; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetSomethingQuery GetSomething { get; } @@ -205,7 +212,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -236,7 +244,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -258,7 +267,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSomethingBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -301,7 +311,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -322,7 +333,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -333,7 +345,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/PersistedQueryGeneratorTests.Simple_Custom_Scalar.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/PersistedQueryGeneratorTests.Simple_Custom_Scalar.snap index b8b24923f33..c526c34a867 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/PersistedQueryGeneratorTests.Simple_Custom_Scalar.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/PersistedQueryGeneratorTests.Simple_Custom_Scalar.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name, global::System.String? email) @@ -150,13 +152,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } @@ -164,11 +168,13 @@ namespace Foo.Bar public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -181,7 +187,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -202,6 +208,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -214,7 +221,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -252,6 +259,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -264,17 +272,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -287,10 +296,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -299,7 +309,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -350,7 +361,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -372,7 +384,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -453,6 +466,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonData { @@ -470,7 +484,8 @@ namespace Foo.Bar.State public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -491,7 +506,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -502,7 +518,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Nested_Entity.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Nested_Entity.snap index ee0bb93014e..d68e8dd4641 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Nested_Entity.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Nested_Entity.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class DecodeVINResult : global::System.IEquatable, IDecodeVINResult { public DecodeVINResult(global::Foo.Bar.IDecodeVIN_DecodeVIN decodeVIN) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class DecodeVIN_DecodeVIN_DecodeVIN : global::System.IEquatable, IDecodeVIN_DecodeVIN_DecodeVIN { public DecodeVIN_DecodeVIN_DecodeVIN(global::System.Boolean isValid, global::Foo.Bar.IDecodeVIN_DecodeVIN_VehicleMake? vehicleMake, global::Foo.Bar.IDecodeVIN_DecodeVIN_VehicleModel? vehicleModel) @@ -154,7 +156,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class DecodeVIN_DecodeVIN_VehicleMake_VehicleMake : global::System.IEquatable, IDecodeVIN_DecodeVIN_VehicleMake_VehicleMake { public DecodeVIN_DecodeVIN_VehicleMake_VehicleMake(global::System.Guid id, global::System.String? make, global::System.String? makeCode, global::System.Boolean isDisabled) @@ -235,7 +238,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class DecodeVIN_DecodeVIN_VehicleModel_VehicleModel : global::System.IEquatable, IDecodeVIN_DecodeVIN_VehicleModel_VehicleModel { public DecodeVIN_DecodeVIN_VehicleModel_VehicleModel(global::System.Guid id, global::System.String? model, global::System.String? modelCode, global::System.Guid vehicleMakeId, global::System.Boolean isDisabled, global::System.String? modelType) @@ -328,13 +332,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IDecodeVINResult { public global::Foo.Bar.IDecodeVIN_DecodeVIN DecodeVIN { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IDecodeVINModel { public global::System.Boolean IsValid { get; } @@ -344,17 +350,20 @@ namespace Foo.Bar public global::Foo.Bar.IDecodeVIN_DecodeVIN_VehicleModel? VehicleModel { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IDecodeVIN_DecodeVIN : IDecodeVINModel { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IDecodeVIN_DecodeVIN_DecodeVIN : IDecodeVIN_DecodeVIN { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IVehicleMakeModel { public global::System.Guid Id { get; } @@ -366,17 +375,20 @@ namespace Foo.Bar public global::System.Boolean IsDisabled { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IDecodeVIN_DecodeVIN_VehicleMake : IVehicleMakeModel { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IDecodeVIN_DecodeVIN_VehicleMake_VehicleMake : IDecodeVIN_DecodeVIN_VehicleMake { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IVehicleModelModel { public global::System.Guid Id { get; } @@ -392,16 +404,19 @@ namespace Foo.Bar public global::System.String? ModelType { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IDecodeVIN_DecodeVIN_VehicleModel : IVehicleModelModel { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IDecodeVIN_DecodeVIN_VehicleModel_VehicleModel : IDecodeVIN_DecodeVIN_VehicleModel { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the DecodeVIN GraphQL operation /// @@ -447,7 +462,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class DecodeVINQueryDocument : global::StrawberryShake.IDocument { private DecodeVINQueryDocument() @@ -468,6 +483,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the DecodeVIN GraphQL operation /// @@ -513,7 +529,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class DecodeVINQuery : global::Foo.Bar.IDecodeVINQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -551,6 +567,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the DecodeVIN GraphQL operation /// @@ -596,17 +613,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IDecodeVINQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IDecodeVINQuery _decodeVIN; @@ -619,10 +637,11 @@ namespace Foo.Bar public global::Foo.Bar.IDecodeVINQuery DecodeVIN => _decodeVIN; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IDecodeVINQuery DecodeVIN { get; } @@ -631,6 +650,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class VehicleMakeEntity { @@ -651,6 +671,7 @@ namespace Foo.Bar.State public global::System.Boolean IsDisabled { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class VehicleModelEntity { @@ -677,7 +698,8 @@ namespace Foo.Bar.State public global::System.String? ModelType { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class DecodeVINResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -757,7 +779,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class DecodeVINResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -779,7 +802,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class DecodeVINBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -941,6 +965,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DecodeVINData { @@ -961,7 +986,8 @@ namespace Foo.Bar.State public global::StrawberryShake.EntityId? VehicleModel { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class DecodeVIN_DecodeVIN_VehicleMake_VehicleMakeFromVehicleMakeEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -981,7 +1007,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class DecodeVIN_DecodeVIN_VehicleModel_VehicleModelFromVehicleModelEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1001,7 +1028,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1060,7 +1088,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1071,7 +1100,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Operation_With_Comments.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Operation_With_Comments.snap index dc16ee1f0a3..fd7d91b36b1 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Operation_With_Comments.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Operation_With_Comments.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResult : global::System.IEquatable, IGetFooResult { public GetFooResult(global::Foo.Bar.IGetFoo_Foo? foo) @@ -81,10 +82,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Baz Type /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz : global::System.IEquatable, IGetFoo_Foo_Baz { public GetFoo_Foo_Baz(global::System.String? str, global::System.String strNonNullable, global::Foo.Bar.IGetFoo_Foo_Nested? nested, global::System.Collections.Generic.IReadOnlyList nestedList, global::System.Collections.Generic.IReadOnlyList?>? nestedMatrix) @@ -204,10 +206,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Baz Type /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Nested_Baz : global::System.IEquatable, IGetFoo_Foo_Nested_Baz { public GetFoo_Foo_Nested_Baz(global::System.String? str) @@ -275,10 +278,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Baz Type /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_NestedList_Baz : global::System.IEquatable, IGetFoo_Foo_NestedList_Baz { public GetFoo_Foo_NestedList_Baz(global::System.String? str) @@ -346,10 +350,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Baz Type /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_NestedMatrix_Baz : global::System.IEquatable, IGetFoo_Foo_NestedMatrix_Baz { public GetFoo_Foo_NestedMatrix_Baz(global::System.String? str) @@ -417,16 +422,18 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooResult { public global::Foo.Bar.IGetFoo_Foo? Foo { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Baz Type /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo { /// @@ -455,18 +462,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList?>? NestedMatrix { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Baz Type /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz : IGetFoo_Foo { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Baz Type /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Nested { /// @@ -475,18 +484,20 @@ namespace Foo.Bar public global::System.String? Str { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Baz Type /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Nested_Baz : IGetFoo_Foo_Nested { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Baz Type /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_NestedList { /// @@ -495,18 +506,20 @@ namespace Foo.Bar public global::System.String? Str { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Baz Type /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_NestedList_Baz : IGetFoo_Foo_NestedList { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Baz Type /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_NestedMatrix { /// @@ -515,14 +528,16 @@ namespace Foo.Bar public global::System.String? Str { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Baz Type /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_NestedMatrix_Baz : IGetFoo_Foo_NestedMatrix { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -547,7 +562,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQueryDocument : global::StrawberryShake.IDocument { private GetFooQueryDocument() @@ -568,6 +583,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -592,7 +608,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQuery : global::Foo.Bar.IGetFooQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -630,6 +646,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -654,17 +671,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetFooQuery _getFoo; @@ -677,10 +695,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetFooQuery GetFoo => _getFoo; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetFooQuery GetFoo { get; } @@ -689,7 +708,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -843,7 +863,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -865,7 +886,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1070,6 +1092,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///Baz Type [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BazData @@ -1102,7 +1125,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList?>? NestedMatrix { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1123,7 +1147,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1134,7 +1159,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Operation_With_Complex_Types.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Operation_With_Complex_Types.snap index acaf3885f4b..ef9d1397b73 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Operation_With_Complex_Types.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Operation_With_Complex_Types.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResult : global::System.IEquatable, IGetFooResult { public GetFooResult(global::Foo.Bar.IGetFoo_Foo? foo) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Baz : global::System.IEquatable, IGetFoo_Foo_Baz { public GetFoo_Foo_Baz(global::System.String? str, global::System.String strNonNullable, global::Foo.Bar.IGetFoo_Foo_Nested? nested, global::System.Collections.Generic.IReadOnlyList nestedList, global::System.Collections.Generic.IReadOnlyList?>? nestedMatrix) @@ -186,7 +188,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_Nested_Baz : global::System.IEquatable, IGetFoo_Foo_Nested_Baz { public GetFoo_Foo_Nested_Baz(global::System.String? str) @@ -251,7 +254,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_NestedList_Baz : global::System.IEquatable, IGetFoo_Foo_NestedList_Baz { public GetFoo_Foo_NestedList_Baz(global::System.String? str) @@ -316,7 +320,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFoo_Foo_NestedMatrix_Baz : global::System.IEquatable, IGetFoo_Foo_NestedMatrix_Baz { public GetFoo_Foo_NestedMatrix_Baz(global::System.String? str) @@ -381,13 +386,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooResult { public global::Foo.Bar.IGetFoo_Foo? Foo { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo { public global::System.String? Str { get; } @@ -401,44 +408,52 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList?>? NestedMatrix { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Baz : IGetFoo_Foo { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Nested { public global::System.String? Str { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_Nested_Baz : IGetFoo_Foo_Nested { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_NestedList { public global::System.String? Str { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_NestedList_Baz : IGetFoo_Foo_NestedList { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_NestedMatrix { public global::System.String? Str { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFoo_Foo_NestedMatrix_Baz : IGetFoo_Foo_NestedMatrix { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -463,7 +478,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQueryDocument : global::StrawberryShake.IDocument { private GetFooQueryDocument() @@ -484,6 +499,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -508,7 +524,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooQuery : global::Foo.Bar.IGetFooQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -546,6 +562,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetFoo GraphQL operation /// @@ -570,17 +587,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFooQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetFooQuery _getFoo; @@ -593,10 +611,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetFooQuery GetFoo => _getFoo; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetFooQuery GetFoo { get; } @@ -605,7 +624,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -759,7 +779,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -781,7 +802,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFooBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -986,6 +1008,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BazData { @@ -1012,7 +1035,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList?>? NestedMatrix { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1033,7 +1057,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1044,7 +1069,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Operation_With_NullableData.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Operation_With_NullableData.snap index 655ec0fdc52..8c2a1af6a34 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Operation_With_NullableData.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ResultTypeGeneratorTests.Operation_With_NullableData.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnFooUpdatedResult : global::System.IEquatable, IOnFooUpdatedResult { public OnFooUpdatedResult(global::Foo.Bar.IOnFooUpdated_OnFooUpdated onFooUpdated) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnFooUpdated_OnFooUpdated_FooNotification : global::System.IEquatable, IOnFooUpdated_OnFooUpdated_FooNotification { public OnFooUpdated_OnFooUpdated_FooNotification(global::System.String action, global::Foo.Bar.IOnFooUpdated_OnFooUpdated_Data data) @@ -142,7 +144,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnFooUpdated_OnFooUpdated_Data_FooNotificationData : global::System.IEquatable, IOnFooUpdated_OnFooUpdated_Data_FooNotificationData { public OnFooUpdated_OnFooUpdated_Data_FooNotificationData(global::System.String barGUID, global::System.String thingGUID, global::System.String thingDATE, global::System.String? thingSTATUS, global::System.String fooGUID, global::System.String? fooAUTHOR, global::System.String fooDATE, global::System.String? fooTEXT) @@ -243,13 +246,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnFooUpdatedResult { public global::Foo.Bar.IOnFooUpdated_OnFooUpdated OnFooUpdated { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnFooUpdated_OnFooUpdated { public global::System.String Action { get; } @@ -257,12 +262,14 @@ namespace Foo.Bar public global::Foo.Bar.IOnFooUpdated_OnFooUpdated_Data Data { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnFooUpdated_OnFooUpdated_FooNotification : IOnFooUpdated_OnFooUpdated { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnFooUpdated_OnFooUpdated_Data { public global::System.String BarGUID { get; } @@ -282,11 +289,13 @@ namespace Foo.Bar public global::System.String? FooTEXT { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnFooUpdated_OnFooUpdated_Data_FooNotificationData : IOnFooUpdated_OnFooUpdated_Data { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnFooUpdated GraphQL operation /// @@ -309,7 +318,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnFooUpdatedSubscriptionDocument : global::StrawberryShake.IDocument { private OnFooUpdatedSubscriptionDocument() @@ -330,6 +339,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnFooUpdated GraphQL operation /// @@ -352,7 +362,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnFooUpdatedSubscription : global::Foo.Bar.IOnFooUpdatedSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -384,6 +394,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the OnFooUpdated GraphQL operation /// @@ -406,16 +417,17 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnFooUpdatedSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IOnFooUpdatedSubscription _onFooUpdated; @@ -428,10 +440,11 @@ namespace Foo.Bar public global::Foo.Bar.IOnFooUpdatedSubscription OnFooUpdated => _onFooUpdated; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IOnFooUpdatedSubscription OnFooUpdated { get; } @@ -440,7 +453,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnFooUpdatedResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -501,7 +515,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnFooUpdatedResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -523,7 +538,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnFooUpdatedBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -623,6 +639,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FooNotificationData { @@ -640,6 +657,7 @@ namespace Foo.Bar.State public global::Foo.Bar.State.FooNotificationDataData? Data { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FooNotificationDataData { @@ -675,7 +693,8 @@ namespace Foo.Bar.State public global::System.String? FooTEXT { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -696,7 +715,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -707,7 +727,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Any_Scalar.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Any_Scalar.snap index e83ee85c4e9..841d993b0ad 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Any_Scalar.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Any_Scalar.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name, global::System.Object? data) @@ -150,13 +152,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } @@ -164,11 +168,13 @@ namespace Foo.Bar public global::System.Object? Data { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -181,7 +187,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -202,6 +208,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -214,7 +221,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -252,6 +259,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -264,17 +272,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -287,10 +296,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -299,7 +309,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -350,7 +361,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -372,7 +384,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -453,6 +466,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonData { @@ -470,7 +484,8 @@ namespace Foo.Bar.State public global::System.Object? Data { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -491,7 +506,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -502,7 +518,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Any_Type.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Any_Type.snap index f3a90fa3abc..965e1c68b9f 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Any_Type.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Any_Type.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name, global::System.Text.Json.JsonElement? email) @@ -150,13 +152,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } @@ -164,11 +168,13 @@ namespace Foo.Bar public global::System.Text.Json.JsonElement? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -181,7 +187,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -202,6 +208,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -214,7 +221,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -252,6 +259,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -264,17 +272,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -287,10 +296,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -299,7 +309,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -350,7 +361,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -372,7 +384,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -453,6 +466,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonData { @@ -470,7 +484,8 @@ namespace Foo.Bar.State public global::System.Text.Json.JsonElement? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -491,7 +506,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -502,7 +518,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.ByteArray_ScalarType.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.ByteArray_ScalarType.snap index d367e0decea..a91c88263e8 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.ByteArray_ScalarType.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.ByteArray_ScalarType.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAttachmentResult : global::System.IEquatable, IGetAttachmentResult { public GetAttachmentResult(global::System.Byte[] byteArray) @@ -77,12 +78,14 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAttachmentResult { public global::System.Byte[] ByteArray { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetAttachment GraphQL operation /// @@ -91,7 +94,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAttachmentQueryDocument : global::StrawberryShake.IDocument { private GetAttachmentQueryDocument() @@ -112,6 +115,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetAttachment GraphQL operation /// @@ -120,7 +124,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAttachmentQuery : global::Foo.Bar.IGetAttachmentQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -158,6 +162,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetAttachment GraphQL operation /// @@ -166,17 +171,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAttachmentQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetAttachmentQuery _getAttachment; @@ -189,10 +195,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetAttachmentQuery GetAttachment => _getAttachment; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetAttachmentQuery GetAttachment { get; } @@ -201,7 +208,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAttachmentResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -232,7 +240,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAttachmentResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -254,7 +263,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAttachmentBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -297,7 +307,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -318,7 +329,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -329,7 +341,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Complete_Schema_With_Uuid_And_DateTime.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Complete_Schema_With_Uuid_And_DateTime.snap index 2b30b15bb0f..493c7de34e9 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Complete_Schema_With_Uuid_And_DateTime.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Complete_Schema_With_Uuid_And_DateTime.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AllExpensesResult : global::System.IEquatable, IAllExpensesResult { public AllExpensesResult(global::System.Collections.Generic.IReadOnlyList? expense) @@ -87,7 +88,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AllExpenses_Expense_Expense : global::System.IEquatable, IAllExpenses_Expense_Expense { public AllExpenses_Expense_Expense(global::System.Guid id, global::System.Decimal amount, global::System.DateTimeOffset date, global::System.String? description, global::Foo.Bar.ExpenseCategory category, global::Foo.Bar.PaymentMethod paymentMethod, global::System.Collections.Generic.IReadOnlyList? tags) @@ -186,7 +188,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AllExpenses_Expense_Tags_Tag : global::System.IEquatable, IAllExpenses_Expense_Tags_Tag { public AllExpenses_Expense_Tags_Tag(global::System.String? name) @@ -251,13 +254,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IAllExpensesResult { public global::System.Collections.Generic.IReadOnlyList? Expense { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IAllExpenses_Expense { public global::System.Guid Id { get; } @@ -275,23 +280,27 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Tags { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IAllExpenses_Expense_Expense : IAllExpenses_Expense { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IAllExpenses_Expense_Tags { public global::System.String? Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IAllExpenses_Expense_Tags_Tag : IAllExpenses_Expense_Tags { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum ExpenseCategory { UnknownExpenseCategory, @@ -312,7 +321,8 @@ namespace Foo.Bar PersonalCare } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ExpenseCategorySerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "ExpenseCategory"; @@ -363,7 +373,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum PaymentMethod { UnknownPaymentMethod, @@ -373,7 +384,8 @@ namespace Foo.Bar PayPal } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PaymentMethodSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "PaymentMethod"; @@ -402,6 +414,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the AllExpenses GraphQL operation /// @@ -425,7 +438,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AllExpensesQueryDocument : global::StrawberryShake.IDocument { private AllExpensesQueryDocument() @@ -446,6 +459,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the AllExpenses GraphQL operation /// @@ -469,7 +483,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AllExpensesQuery : global::Foo.Bar.IAllExpensesQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -507,6 +521,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the AllExpenses GraphQL operation /// @@ -530,17 +545,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IAllExpensesQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IAllExpensesQuery _allExpenses; @@ -553,10 +569,11 @@ namespace Foo.Bar public global::Foo.Bar.IAllExpensesQuery AllExpenses => _allExpenses; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IAllExpensesQuery AllExpenses { get; } @@ -565,6 +582,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ExpenseEntity { @@ -594,7 +612,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Tags { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AllExpensesResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -658,7 +677,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AllExpensesResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -680,7 +700,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AllExpensesBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -904,6 +925,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class TagData { @@ -918,7 +940,8 @@ namespace Foo.Bar.State public global::System.String? Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AllExpenses_Expense_ExpenseFromExpenseEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -974,7 +997,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1014,7 +1038,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1025,7 +1050,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_RuntimeType.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_RuntimeType.snap index f96c878747c..cc9db4ce79b 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_RuntimeType.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_RuntimeType.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name, global::System.Int32? email) @@ -150,13 +152,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } @@ -164,11 +168,13 @@ namespace Foo.Bar public global::System.Int32? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -181,7 +187,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -202,6 +208,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -214,7 +221,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -252,6 +259,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -264,17 +272,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -287,10 +296,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -299,7 +309,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -350,7 +361,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -372,7 +384,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -453,6 +466,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonData { @@ -470,7 +484,8 @@ namespace Foo.Bar.State public global::System.Int32? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -491,7 +506,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -502,7 +518,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_RuntimeType_ValueType_AsInput.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_RuntimeType_ValueType_AsInput.snap index 13a5b1b3160..c2c4dea7133 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_RuntimeType_ValueType_AsInput.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_RuntimeType_ValueType_AsInput.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SetPersonResult : global::System.IEquatable, ISetPersonResult { public SetPersonResult(global::Foo.Bar.ISetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SetPerson_Person_Person : global::System.IEquatable, ISetPerson_Person_Person { public SetPerson_Person_Person(global::System.Index setEmail) @@ -142,23 +144,27 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISetPersonResult { public global::Foo.Bar.ISetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISetPerson_Person { public global::System.Index SetEmail { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISetPerson_Person_Person : ISetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SetPerson GraphQL operation /// @@ -170,7 +176,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SetPersonQueryDocument : global::StrawberryShake.IDocument { private SetPersonQueryDocument() @@ -191,6 +197,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SetPerson GraphQL operation /// @@ -202,7 +209,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SetPersonQuery : global::Foo.Bar.ISetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -249,6 +256,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the SetPerson GraphQL operation /// @@ -260,17 +268,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Index email, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.Index email, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ISetPersonQuery _setPerson; @@ -283,10 +292,11 @@ namespace Foo.Bar public global::Foo.Bar.ISetPersonQuery SetPerson => _setPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ISetPersonQuery SetPerson { get; } @@ -295,7 +305,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -346,7 +357,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -368,7 +380,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -432,6 +445,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonData { @@ -446,7 +460,8 @@ namespace Foo.Bar.State public global::System.Index? SetEmail { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -467,7 +482,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -478,7 +494,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_SerializationType.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_SerializationType.snap index a75b3d31c8d..a4a94de16e8 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_SerializationType.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_SerializationType.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name, global::System.String? email) @@ -150,13 +152,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } @@ -164,11 +168,13 @@ namespace Foo.Bar public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -181,7 +187,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -202,6 +208,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -214,7 +221,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -252,6 +259,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -264,17 +272,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -287,10 +296,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -299,7 +309,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -350,7 +361,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -372,7 +384,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -453,6 +466,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonData { @@ -470,7 +484,8 @@ namespace Foo.Bar.State public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -491,7 +506,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -502,7 +518,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_SerializationType_And_RuntimeType.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_SerializationType_And_RuntimeType.snap index 0936980c9ee..fee99dcbb4b 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_SerializationType_And_RuntimeType.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_SerializationType_And_RuntimeType.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name, global::System.Int64? email) @@ -150,13 +152,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } @@ -164,11 +168,13 @@ namespace Foo.Bar public global::System.Int64? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -181,7 +187,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -202,6 +208,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -214,7 +221,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -252,6 +259,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -264,17 +272,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -287,10 +296,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -299,7 +309,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -350,7 +361,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -372,7 +384,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -453,6 +466,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonData { @@ -470,7 +484,8 @@ namespace Foo.Bar.State public global::System.Int64? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -491,7 +506,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -502,7 +518,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_Unknown_RuntimeType.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_Unknown_RuntimeType.snap index 651b8e3eb5a..156ebe55761 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_Unknown_RuntimeType.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Custom_Scalar_With_Unknown_RuntimeType.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name, global::StrawberryShake.CodeGeneration.CSharp.Custom? email) @@ -150,13 +152,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } @@ -164,11 +168,13 @@ namespace Foo.Bar public global::StrawberryShake.CodeGeneration.CSharp.Custom? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -181,7 +187,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -202,6 +208,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -214,7 +221,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -252,6 +259,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -264,17 +272,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -287,10 +296,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -299,7 +309,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -350,7 +361,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -372,7 +384,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -453,6 +466,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonData { @@ -470,7 +484,8 @@ namespace Foo.Bar.State public global::StrawberryShake.CodeGeneration.CSharp.Custom? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -491,7 +506,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -502,7 +518,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Only_Custom_Scalars.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Only_Custom_Scalars.snap index 66cac7623f7..a7a2f4106b8 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Only_Custom_Scalars.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Only_Custom_Scalars.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String? email) @@ -146,23 +148,27 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -174,7 +180,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -195,6 +201,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -206,7 +213,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -244,6 +251,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -255,17 +263,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -278,10 +287,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -290,7 +300,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -341,7 +352,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -363,7 +375,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -427,6 +440,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonData { @@ -441,7 +455,8 @@ namespace Foo.Bar.State public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -462,7 +477,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -473,7 +489,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Scalars_Are_Correctly_Inferred.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Scalars_Are_Correctly_Inferred.snap index b61f9804ae3..7ab8ac08f72 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Scalars_Are_Correctly_Inferred.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Scalars_Are_Correctly_Inferred.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllResult : global::System.IEquatable, IGetAllResult { public GetAllResult(global::System.Collections.Generic.IReadOnlyList listings) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAll_Listings_Offer : global::System.IEquatable, IGetAll_Listings_Offer { public GetAll_Listings_Offer(global::System.Double? numberFloat, global::System.Int32? numberInt) @@ -154,13 +156,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAllResult { public global::System.Collections.Generic.IReadOnlyList Listings { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOffer { public global::System.Double? NumberFloat { get; } @@ -168,16 +172,19 @@ namespace Foo.Bar public global::System.Int32? NumberInt { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAll_Listings : IOffer { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAll_Listings_Offer : IGetAll_Listings { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetAll GraphQL operation /// @@ -194,7 +201,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllQueryDocument : global::StrawberryShake.IDocument { private GetAllQueryDocument() @@ -215,6 +222,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetAll GraphQL operation /// @@ -231,7 +239,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllQuery : global::Foo.Bar.IGetAllQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -269,6 +277,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetAll GraphQL operation /// @@ -285,17 +294,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAllQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetAllQuery _getAll; @@ -308,10 +318,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetAllQuery GetAll => _getAll; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetAllQuery GetAll { get; } @@ -320,7 +331,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -382,7 +394,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -404,7 +417,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -506,6 +520,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class OfferData { @@ -523,7 +538,8 @@ namespace Foo.Bar.State public global::System.Int32? NumberInt { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -544,7 +560,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -555,7 +572,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Simple_Custom_Scalar.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Simple_Custom_Scalar.snap index 567cf1da930..2b7926a52ae 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Simple_Custom_Scalar.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Simple_Custom_Scalar.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.String name, global::System.String? email) @@ -150,13 +152,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.String Name { get; } @@ -164,11 +168,13 @@ namespace Foo.Bar public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -181,7 +187,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -202,6 +208,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -214,7 +221,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -252,6 +259,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -264,17 +272,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -287,10 +296,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -299,7 +309,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -350,7 +361,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -372,7 +384,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -453,6 +466,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonData { @@ -470,7 +484,8 @@ namespace Foo.Bar.State public global::System.String? Email { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -491,7 +506,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -502,7 +518,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.TimeSpan_Not_Detected.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.TimeSpan_Not_Detected.snap index 6e8ec93aacf..621bf6fe183 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.TimeSpan_Not_Detected.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.TimeSpan_Not_Detected.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSessionsResult : global::System.IEquatable, IGetSessionsResult { public GetSessionsResult(global::Foo.Bar.IGetSessions_Sessions? sessions) @@ -81,10 +82,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSessions_Sessions_SessionConnection : global::System.IEquatable, IGetSessions_Sessions_SessionConnection { public GetSessions_Sessions_SessionConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -155,7 +157,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSessions_Sessions_Nodes_Session : global::System.IEquatable, IGetSessions_Sessions_Nodes_Session { public GetSessions_Sessions_Nodes_Session(global::System.String title) @@ -216,16 +219,18 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSessionsResult { public global::Foo.Bar.IGetSessions_Sessions? Sessions { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSessions_Sessions { /// @@ -234,25 +239,29 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSessions_Sessions_SessionConnection : IGetSessions_Sessions { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSessions_Sessions_Nodes { public global::System.String Title { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSessions_Sessions_Nodes_Session : IGetSessions_Sessions_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetSessions GraphQL operation /// @@ -270,7 +279,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSessionsQueryDocument : global::StrawberryShake.IDocument { private GetSessionsQueryDocument() @@ -291,6 +300,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetSessions GraphQL operation /// @@ -308,7 +318,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSessionsQuery : global::Foo.Bar.IGetSessionsQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -346,6 +356,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetSessions GraphQL operation /// @@ -363,17 +374,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetSessionsQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetSessionsQuery _getSessions; @@ -386,10 +398,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetSessionsQuery GetSessions => _getSessions; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetSessionsQuery GetSessions { get; } @@ -398,6 +411,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class SessionEntity { @@ -409,7 +423,8 @@ namespace Foo.Bar.State public global::System.String Title { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSessionsResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -488,7 +503,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSessionsResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -510,7 +526,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSessionsBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -628,6 +645,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class SessionConnectionData @@ -644,7 +662,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetSessions_Sessions_Nodes_SessionFromSessionEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -664,7 +683,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -704,7 +724,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -715,7 +736,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Uri_Type.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Uri_Type.snap index 63d9d067b94..2d23af10515 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Uri_Type.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Uri_Type.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.Uri? uri, global::System.Uri? uRI) @@ -154,13 +156,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.Uri? Uri { get; } @@ -168,11 +172,13 @@ namespace Foo.Bar public global::System.Uri? URI { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -185,7 +191,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -206,6 +212,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -218,7 +225,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -256,6 +263,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -268,17 +276,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -291,10 +300,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -303,7 +313,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -354,7 +365,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -376,7 +388,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -442,6 +455,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonData { @@ -459,7 +473,8 @@ namespace Foo.Bar.State public global::System.Uri? URI { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -480,7 +495,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -491,7 +507,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Uuid_Type.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Uuid_Type.snap index a1fdc14c0ad..a0842c2e3e5 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Uuid_Type.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/ScalarGeneratorTests.Uuid_Type.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResult : global::System.IEquatable, IGetPersonResult { public GetPersonResult(global::Foo.Bar.IGetPerson_Person? person) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPerson_Person_Person : global::System.IEquatable, IGetPerson_Person_Person { public GetPerson_Person_Person(global::System.Guid? uuid, global::System.Guid? uUID) @@ -154,13 +156,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonResult { public global::Foo.Bar.IGetPerson_Person? Person { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person { public global::System.Guid? Uuid { get; } @@ -168,11 +172,13 @@ namespace Foo.Bar public global::System.Guid? UUID { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPerson_Person_Person : IGetPerson_Person { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -185,7 +191,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQueryDocument : global::StrawberryShake.IDocument { private GetPersonQueryDocument() @@ -206,6 +212,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -218,7 +225,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonQuery : global::Foo.Bar.IGetPersonQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -256,6 +263,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPerson GraphQL operation /// @@ -268,17 +276,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPersonQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPersonQuery _getPerson; @@ -291,10 +300,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPersonQuery GetPerson => _getPerson; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPersonQuery GetPerson { get; } @@ -303,7 +313,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -354,7 +365,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -376,7 +388,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPersonBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -442,6 +455,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonData { @@ -459,7 +473,8 @@ namespace Foo.Bar.State public global::System.Guid? UUID { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -480,7 +495,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -491,7 +507,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_DataType_Query.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_DataType_Query.snap index f6e1c33de17..8a4dc62279b 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_DataType_Query.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_DataType_Query.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllFoosResult : global::System.IEquatable, IGetAllFoosResult { public GetAllFoosResult(global::System.Collections.Generic.IReadOnlyList test) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllFoos_Test_Foo : global::System.IEquatable, IGetAllFoos_Test_Foo { public GetAllFoos_Test_Foo(global::Foo.Bar.IGetAllFoos_Test_Profile profile) @@ -142,7 +144,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllFoos_Test_Profile_Profile : global::System.IEquatable, IGetAllFoos_Test_Profile_Profile { public GetAllFoos_Test_Profile_Profile(global::System.String? name) @@ -207,34 +210,40 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAllFoosResult { public global::System.Collections.Generic.IReadOnlyList Test { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAllFoos_Test { public global::Foo.Bar.IGetAllFoos_Test_Profile Profile { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAllFoos_Test_Foo : IGetAllFoos_Test { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAllFoos_Test_Profile { public global::System.String? Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAllFoos_Test_Profile_Profile : IGetAllFoos_Test_Profile { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetAllFoos GraphQL operation /// @@ -249,7 +258,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllFoosQueryDocument : global::StrawberryShake.IDocument { private GetAllFoosQueryDocument() @@ -270,6 +279,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetAllFoos GraphQL operation /// @@ -284,7 +294,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllFoosQuery : global::Foo.Bar.IGetAllFoosQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -322,6 +332,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetAllFoos GraphQL operation /// @@ -336,17 +347,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAllFoosQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetAllFoosQuery _getAllFoos; @@ -359,10 +371,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetAllFoosQuery GetAllFoos => _getAllFoos; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetAllFoosQuery GetAllFoos { get; } @@ -371,7 +384,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllFoosResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -448,7 +462,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllFoosResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -470,7 +485,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllFoosBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -576,6 +592,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FooData { @@ -590,6 +607,7 @@ namespace Foo.Bar.State public global::Foo.Bar.State.ProfileData? Profile { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ProfileData { @@ -604,7 +622,8 @@ namespace Foo.Bar.State public global::System.String? Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -625,7 +644,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -636,7 +656,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_GetFeatById.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_GetFeatById.snap index c170a9200bc..151d8ffe6af 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_GetFeatById.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_GetFeatById.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatByIdResult : global::System.IEquatable, IGetFeatByIdResult { public GetFeatByIdResult(global::Foo.Bar.IGetFeatById_Feats? feats) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatById_Feats_FeatCollectionSegment : global::System.IEquatable, IGetFeatById_Feats_FeatCollectionSegment { public GetFeatById_Feats_FeatCollectionSegment(global::System.Collections.Generic.IReadOnlyList? items) @@ -152,7 +154,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatById_Feats_Items_Feat : global::System.IEquatable, IGetFeatById_Feats_Items_Feat { public GetFeatById_Feats_Items_Feat(global::System.Guid id, global::System.String name, global::System.Int32 level, global::System.Collections.Generic.IReadOnlyList details) @@ -229,7 +232,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatById_Feats_Items_Details_FeatDetailsBlock : global::System.IEquatable, IGetFeatById_Feats_Items_Details_FeatDetailsBlock { public GetFeatById_Feats_Items_Details_FeatDetailsBlock(global::System.String text) @@ -290,24 +294,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatByIdResult { public global::Foo.Bar.IGetFeatById_Feats? Feats { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats { public global::System.Collections.Generic.IReadOnlyList? Items { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats_FeatCollectionSegment : IGetFeatById_Feats { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats_Items { public global::System.Guid Id { get; } @@ -319,22 +327,26 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList Details { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats_Items_Feat : IGetFeatById_Feats_Items { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats_Items_Details { public global::System.String Text { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats_Items_Details_FeatDetailsBlock : IGetFeatById_Feats_Items_Details { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetFeatById GraphQL operation /// @@ -361,7 +373,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatByIdQueryDocument : global::StrawberryShake.IDocument { private GetFeatByIdQueryDocument() @@ -382,6 +394,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetFeatById GraphQL operation /// @@ -408,7 +421,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatByIdQuery : global::Foo.Bar.IGetFeatByIdQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -455,6 +468,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetFeatById GraphQL operation /// @@ -481,17 +495,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatByIdQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Guid id, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.Guid id, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetFeatByIdQuery _getFeatById; @@ -504,10 +519,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetFeatByIdQuery GetFeatById => _getFeatById; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetFeatByIdQuery GetFeatById { get; } @@ -516,6 +532,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FeatEntity { @@ -536,6 +553,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList Details { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FeatDetailsBlockEntity { @@ -547,7 +565,8 @@ namespace Foo.Bar.State public global::System.String Text { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatByIdResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -659,7 +678,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatByIdResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -681,7 +701,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatByIdBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -885,6 +906,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FeatCollectionSegmentData { @@ -899,7 +921,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Items { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatById_Feats_Items_FeatFromFeatEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -947,7 +970,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatById_Feats_Items_Details_FeatDetailsBlockFromFeatDetailsBlockEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -967,7 +991,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1026,7 +1051,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1037,7 +1063,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_GetFeatsPage.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_GetFeatsPage.snap index 778f078e4bd..83e00980931 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_GetFeatsPage.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_GetFeatsPage.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPageResult : global::System.IEquatable, IGetFeatsPageResult { public GetFeatsPageResult(global::Foo.Bar.IGetFeatsPage_Feats? feats) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPage_Feats_FeatCollectionSegment : global::System.IEquatable, IGetFeatsPage_Feats_FeatCollectionSegment { public GetFeatsPage_Feats_FeatCollectionSegment(global::System.Collections.Generic.IReadOnlyList? items) @@ -152,7 +154,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPage_Feats_Items_Feat : global::System.IEquatable, IGetFeatsPage_Feats_Items_Feat { public GetFeatsPage_Feats_Items_Feat(global::System.String name, global::System.Int32 level, global::System.Boolean canBeLearnedMoreThanOnce, global::Foo.Bar.IGetFeatsPage_Feats_Items_ActionType actionType) @@ -225,7 +228,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPage_Feats_Items_ActionType_ActionType : global::System.IEquatable, IGetFeatsPage_Feats_Items_ActionType_ActionType { public GetFeatsPage_Feats_Items_ActionType_ActionType(global::System.String name) @@ -286,24 +290,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPageResult { public global::Foo.Bar.IGetFeatsPage_Feats? Feats { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPage_Feats { public global::System.Collections.Generic.IReadOnlyList? Items { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPage_Feats_FeatCollectionSegment : IGetFeatsPage_Feats { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPage_Feats_Items { public global::System.String Name { get; } @@ -315,22 +323,26 @@ namespace Foo.Bar public global::Foo.Bar.IGetFeatsPage_Feats_Items_ActionType ActionType { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPage_Feats_Items_Feat : IGetFeatsPage_Feats_Items { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPage_Feats_Items_ActionType { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPage_Feats_Items_ActionType_ActionType : IGetFeatsPage_Feats_Items_ActionType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetFeatsPage GraphQL operation /// @@ -357,7 +369,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPageQueryDocument : global::StrawberryShake.IDocument { private GetFeatsPageQueryDocument() @@ -378,6 +390,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetFeatsPage GraphQL operation /// @@ -404,7 +417,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPageQuery : global::Foo.Bar.IGetFeatsPageQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -471,6 +484,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetFeatsPage GraphQL operation /// @@ -497,17 +511,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPageQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Int32? skip, global::System.Int32? take, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.Int32? skip, global::System.Int32? take, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetFeatsPageQuery _getFeatsPage; @@ -520,10 +535,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetFeatsPageQuery GetFeatsPage => _getFeatsPage; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetFeatsPageQuery GetFeatsPage { get; } @@ -532,6 +548,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FeatEntity { @@ -552,6 +569,7 @@ namespace Foo.Bar.State public global::StrawberryShake.EntityId ActionType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ActionTypeEntity { @@ -563,7 +581,8 @@ namespace Foo.Bar.State public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPageResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -659,7 +678,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPageResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -681,7 +701,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPageBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -864,6 +885,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FeatCollectionSegmentData { @@ -878,7 +900,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Items { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPage_Feats_Items_FeatFromFeatEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -910,7 +933,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPage_Feats_Items_ActionType_ActionTypeFromActionTypeEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -930,7 +954,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -989,7 +1014,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1000,7 +1026,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_PeopleSearch_From_ActiveDirectory_Schema.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_PeopleSearch_From_ActiveDirectory_Schema.snap index a5d40168752..0cfb8c72b6f 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_PeopleSearch_From_ActiveDirectory_Schema.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_PeopleSearch_From_ActiveDirectory_Schema.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearchResult : global::System.IEquatable, IPeopleSearchQueryResult { public PeopleSearchResult(global::Foo.Bar.IPeopleSearch_People? people) @@ -84,7 +85,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearch_People_PersonCollectionSegment : global::System.IEquatable, IPeopleSearch_People_PersonCollectionSegment { public PeopleSearch_People_PersonCollectionSegment(global::System.Int32 totalCount, global::Foo.Bar.IPeopleSearch_People_PageInfo pageInfo, global::System.Collections.Generic.IReadOnlyList? items) @@ -163,10 +165,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Information about the offset pagination. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearch_People_PageInfo_CollectionSegmentInfo : global::System.IEquatable, IPeopleSearch_People_PageInfo_CollectionSegmentInfo { public PeopleSearch_People_PageInfo_CollectionSegmentInfo(global::System.Boolean hasNextPage, global::System.Boolean hasPreviousPage) @@ -237,7 +240,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearch_People_Items_Person : global::System.IEquatable, IPeopleSearch_People_Items_Person { public PeopleSearch_People_Items_Person(global::System.String id, global::System.Int64 key, global::System.String? displayName, global::System.Boolean isActive, global::Foo.Bar.IPeopleSearch_People_Items_Department? department, global::System.Uri? image, global::System.String title, global::Foo.Bar.IPeopleSearch_People_Items_Manager? manager) @@ -363,7 +367,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearch_People_Items_Department_Department : global::System.IEquatable, IPeopleSearch_People_Items_Department_Department { public PeopleSearch_People_Items_Department_Department(global::System.String id, global::System.String name) @@ -431,7 +436,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearch_People_Items_Manager_Person : global::System.IEquatable, IPeopleSearch_People_Items_Manager_Person { public PeopleSearch_People_Items_Manager_Person(global::System.String id, global::System.Int64 key, global::System.String? displayName) @@ -510,7 +516,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPeopleSearchQueryResult { /// @@ -519,7 +526,8 @@ namespace Foo.Bar public global::Foo.Bar.IPeopleSearch_People? People { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPeopleSearch_People { public global::System.Int32 TotalCount { get; } @@ -532,15 +540,17 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Items { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPeopleSearch_People_PersonCollectionSegment : IPeopleSearch_People { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Information about the offset pagination. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPeopleSearch_People_PageInfo { /// @@ -554,15 +564,17 @@ namespace Foo.Bar public global::System.Boolean HasPreviousPage { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Information about the offset pagination. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPeopleSearch_People_PageInfo_CollectionSegmentInfo : IPeopleSearch_People_PageInfo { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPeopleSearchResult { public global::System.String Id { get; } @@ -603,17 +615,20 @@ namespace Foo.Bar public global::Foo.Bar.IPeopleSearch_People_Items_Manager? Manager { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPeopleSearch_People_Items : IPeopleSearchResult { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPeopleSearch_People_Items_Person : IPeopleSearch_People_Items { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPeopleSearch_People_Items_Department { public global::System.String Id { get; } @@ -624,12 +639,14 @@ namespace Foo.Bar public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPeopleSearch_People_Items_Department_Department : IPeopleSearch_People_Items_Department { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPeopleSearch_People_Items_Manager { public global::System.String Id { get; } @@ -645,11 +662,13 @@ namespace Foo.Bar public global::System.String? DisplayName { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPeopleSearch_People_Items_Manager_Person : IPeopleSearch_People_Items_Manager { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the PeopleSearch GraphQL operation /// @@ -699,7 +718,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearchQueryDocument : global::StrawberryShake.IDocument { private PeopleSearchQueryDocument() @@ -720,6 +739,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the PeopleSearch GraphQL operation /// @@ -769,7 +789,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearchQuery : global::Foo.Bar.IPeopleSearchQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -864,6 +884,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the PeopleSearch GraphQL operation /// @@ -913,17 +934,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IPeopleSearchQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.String term, global::System.Int32? skip, global::System.Int32? take, global::System.Boolean? inactive, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.String term, global::System.Int32? skip, global::System.Int32? take, global::System.Boolean? inactive, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IPeopleSearchQuery _peopleSearch; @@ -936,10 +958,11 @@ namespace Foo.Bar public global::Foo.Bar.IPeopleSearchQuery PeopleSearch => _peopleSearch; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IPeopleSearchQuery PeopleSearch { get; } @@ -948,6 +971,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonEntity { @@ -987,6 +1011,7 @@ namespace Foo.Bar.State public global::StrawberryShake.EntityId? Manager { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DepartmentEntity { @@ -1002,7 +1027,8 @@ namespace Foo.Bar.State public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearchResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1130,7 +1156,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearchResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -1155,7 +1182,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearchBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1441,6 +1469,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class PersonCollectionSegmentData { @@ -1462,6 +1491,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Items { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///Information about the offset pagination. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class CollectionSegmentInfoData @@ -1482,7 +1512,8 @@ namespace Foo.Bar.State public global::System.Boolean? HasPreviousPage { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearch_People_Items_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1536,7 +1567,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearch_People_Items_Department_DepartmentFromDepartmentEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1556,7 +1588,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class PeopleSearch_People_Items_Manager_PersonFromPersonEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1576,7 +1609,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1635,7 +1669,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1646,7 +1681,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_Query_With_Skip_Take.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_Query_With_Skip_Take.snap index 3176fbea12c..5552886d9cc 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_Query_With_Skip_Take.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_Query_With_Skip_Take.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchNewsItemsResult : global::System.IEquatable, ISearchNewsItemsResult { public SearchNewsItemsResult(global::Foo.Bar.ISearchNewsItems_NewsItems? newsItems) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchNewsItems_NewsItems_NewsItemCollectionSegment : global::System.IEquatable, ISearchNewsItems_NewsItems_NewsItemCollectionSegment { public SearchNewsItems_NewsItems_NewsItemCollectionSegment(global::System.Collections.Generic.IReadOnlyList? items) @@ -152,7 +154,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchNewsItems_NewsItems_Items_NewsItem : global::System.IEquatable, ISearchNewsItems_NewsItems_Items_NewsItem { public SearchNewsItems_NewsItems_Items_NewsItem(global::System.String id, global::System.String title, global::System.String summary) @@ -221,24 +224,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchNewsItemsResult { public global::Foo.Bar.ISearchNewsItems_NewsItems? NewsItems { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchNewsItems_NewsItems { public global::System.Collections.Generic.IReadOnlyList? Items { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchNewsItems_NewsItems_NewsItemCollectionSegment : ISearchNewsItems_NewsItems { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchNewsItems_NewsItems_Items { public global::System.String Id { get; } @@ -248,11 +255,13 @@ namespace Foo.Bar public global::System.String Summary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchNewsItems_NewsItems_Items_NewsItem : ISearchNewsItems_NewsItems_Items { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SearchNewsItems GraphQL operation /// @@ -272,7 +281,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchNewsItemsQueryDocument : global::StrawberryShake.IDocument { private SearchNewsItemsQueryDocument() @@ -293,6 +302,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SearchNewsItems GraphQL operation /// @@ -312,7 +322,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchNewsItemsQuery : global::Foo.Bar.ISearchNewsItemsQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -392,6 +402,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the SearchNewsItems GraphQL operation /// @@ -411,17 +422,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchNewsItemsQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.String query, global::System.Int32? skip, global::System.Int32? take, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.String query, global::System.Int32? skip, global::System.Int32? take, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ISearchNewsItemsQuery _searchNewsItems; @@ -434,10 +446,11 @@ namespace Foo.Bar public global::Foo.Bar.ISearchNewsItemsQuery SearchNewsItems => _searchNewsItems; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ISearchNewsItemsQuery SearchNewsItems { get; } @@ -446,6 +459,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class NewsItemEntity { @@ -463,7 +477,8 @@ namespace Foo.Bar.State public global::System.String Summary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchNewsItemsResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -547,7 +562,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchNewsItemsResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -569,7 +585,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchNewsItemsBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -691,6 +708,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class NewsItemCollectionSegmentData { @@ -705,7 +723,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Items { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchNewsItems_NewsItems_Items_NewsItemFromNewsItemEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -725,7 +744,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -765,7 +785,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -776,7 +797,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_UpdateMembers_Mutation.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_UpdateMembers_Mutation.snap index ffac25e79de..ebe59d0f1d3 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_UpdateMembers_Mutation.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Create_UpdateMembers_Mutation.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UpdateMembersResult : global::System.IEquatable, IUpdateMembersResult { public UpdateMembersResult(global::Foo.Bar.IUpdateMembers_Project project) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UpdateMembers_Project_ProjectMutations : global::System.IEquatable, IUpdateMembers_Project_ProjectMutations { public UpdateMembers_Project_ProjectMutations(global::Foo.Bar.IUpdateMembers_Project_UpdateMembers? updateMembers) @@ -145,7 +147,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UpdateMembers_Project_UpdateMembers_MutationResult : global::System.IEquatable, IUpdateMembers_Project_UpdateMembers_MutationResult { public UpdateMembers_Project_UpdateMembers_MutationResult(global::System.Guid correlationId) @@ -206,13 +209,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IUpdateMembersResult { public global::Foo.Bar.IUpdateMembers_Project Project { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IUpdateMembers_Project { /// @@ -221,23 +226,27 @@ namespace Foo.Bar public global::Foo.Bar.IUpdateMembers_Project_UpdateMembers? UpdateMembers { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IUpdateMembers_Project_ProjectMutations : IUpdateMembers_Project { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IUpdateMembers_Project_UpdateMembers { public global::System.Guid CorrelationId { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IUpdateMembers_Project_UpdateMembers_MutationResult : IUpdateMembers_Project_UpdateMembers { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UpdateProjectMembersInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _guidFormatter = default !; @@ -306,6 +315,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator ///Update the project members [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class UpdateProjectMembersInput : global::Foo.Bar.State.IUpdateProjectMembersInputInfo, global::System.IEquatable @@ -398,7 +408,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IUpdateProjectMembersInputInfo.IsMembersSet => _set_members; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UpdateProjectMemberInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _guidFormatter = default !; @@ -461,6 +472,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class UpdateProjectMemberInput : global::Foo.Bar.State.IUpdateProjectMemberInputInfo, global::System.IEquatable { @@ -560,7 +572,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IUpdateProjectMemberInputInfo.IsRemoveSet => _set_remove; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum ProjectUserRoleType { Viewer, @@ -568,7 +581,8 @@ namespace Foo.Bar Owner } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ProjectUserRoleTypeSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "ProjectUserRoleType"; @@ -593,6 +607,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the UpdateMembers GraphQL operation /// @@ -607,7 +622,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UpdateMembersMutationDocument : global::StrawberryShake.IDocument { private UpdateMembersMutationDocument() @@ -628,6 +643,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the UpdateMembers GraphQL operation /// @@ -642,7 +658,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UpdateMembersMutation : global::Foo.Bar.IUpdateMembersMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -694,6 +710,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the UpdateMembers GraphQL operation /// @@ -708,17 +725,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IUpdateMembersMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.UpdateProjectMembersInput input, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.UpdateProjectMembersInput input, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IUpdateMembersMutation _updateMembers; @@ -731,10 +749,11 @@ namespace Foo.Bar public global::Foo.Bar.IUpdateMembersMutation UpdateMembers => _updateMembers; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IUpdateMembersMutation UpdateMembers { get; } @@ -743,7 +762,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UpdateMembersResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -809,7 +829,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UpdateMembersResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -831,6 +852,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IUpdateProjectMembersInputInfo { @@ -839,6 +861,7 @@ namespace Foo.Bar.State global::System.Boolean IsMembersSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IUpdateProjectMemberInputInfo { @@ -849,7 +872,8 @@ namespace Foo.Bar.State global::System.Boolean IsRemoveSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class UpdateMembersBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -938,6 +962,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ProjectMutationsData { @@ -953,6 +978,7 @@ namespace Foo.Bar.State public global::Foo.Bar.State.MutationResultData? UpdateMembers { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class MutationResultData { @@ -967,7 +993,8 @@ namespace Foo.Bar.State public global::System.Guid? CorrelationId { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -988,7 +1015,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -999,7 +1027,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.FieldsWithUnderlineInName.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.FieldsWithUnderlineInName.snap index 6deb144c81a..21b866718a3 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.FieldsWithUnderlineInName.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.FieldsWithUnderlineInName.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeriesResult : global::System.IEquatable, IGetBwr_TimeSeriesResult { public GetBwr_TimeSeriesResult(global::Foo.Bar.IGetBwr_TimeSeries_Bwr_TimeSeries? bwr_TimeSeries) @@ -81,10 +82,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeries_Bwr_TimeSeries_Bwr_TimeSeriesConnection : global::System.IEquatable, IGetBwr_TimeSeries_Bwr_TimeSeries_Bwr_TimeSeriesConnection { public GetBwr_TimeSeries_Bwr_TimeSeries_Bwr_TimeSeriesConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -158,7 +160,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeries_Bwr_TimeSeries_Nodes_bwr_TimeSeries : global::System.IEquatable, IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_bwr_TimeSeries { public GetBwr_TimeSeries_Bwr_TimeSeries_Nodes_bwr_TimeSeries(global::System.String? inventoryId, global::System.String? area, global::System.String? source, global::System.String? type, global::System.String? name, global::System.String? category, global::System.String? specification, global::System.String? commodity, global::Foo.Bar.IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_Resolution? resolution, global::System.String? unit, global::Foo.Bar.IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ValidationCriteria? validationCriteria, global::Foo.Bar.IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ImportSpecification? importSpecification, global::System.Collections.Generic.IReadOnlyList? _dataPoints) @@ -322,7 +325,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeries_Bwr_TimeSeries_Nodes_Resolution_Resolution : global::System.IEquatable, IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_Resolution_Resolution { public GetBwr_TimeSeries_Bwr_TimeSeries_Nodes_Resolution_Resolution(global::Foo.Bar.TimeUnit timeUnit, global::System.Int32 factor) @@ -387,7 +391,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ValidationCriteria_bwr_ValidationCriteria : global::System.IEquatable, IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ValidationCriteria_bwr_ValidationCriteria { public GetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ValidationCriteria_bwr_ValidationCriteria(global::System.String? _inventoryItemId, global::System.String? name, global::System.String? completeness, global::System.Decimal? lowerBound, global::System.Decimal? upperBound) @@ -484,7 +489,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ImportSpecification_bwr_ImportSpecification : global::System.IEquatable, IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ImportSpecification_bwr_ImportSpecification { public GetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ImportSpecification_bwr_ImportSpecification(global::System.Int32? fromPeriod, global::System.Int32? toPeriod) @@ -557,7 +563,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeries_Bwr_TimeSeries_Nodes__dataPoints_DataPoint : global::System.IEquatable, IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes__dataPoints_DataPoint { public GetBwr_TimeSeries_Bwr_TimeSeries_Nodes__dataPoints_DataPoint(global::System.DateTimeOffset timestamp, global::System.Double @value, global::Foo.Bar.DataFlag flag) @@ -626,16 +633,18 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeriesResult { public global::Foo.Bar.IGetBwr_TimeSeries_Bwr_TimeSeries? Bwr_TimeSeries { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeries_Bwr_TimeSeries { /// @@ -644,15 +653,17 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeries_Bwr_TimeSeries_Bwr_TimeSeriesConnection : IGetBwr_TimeSeries_Bwr_TimeSeries { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IBwr_TimeSeries { public global::System.String? InventoryId { get; } @@ -682,17 +693,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? _dataPoints { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes : IBwr_TimeSeries { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_bwr_TimeSeries : IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_Resolution { public global::Foo.Bar.TimeUnit TimeUnit { get; } @@ -700,12 +714,14 @@ namespace Foo.Bar public global::System.Int32 Factor { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_Resolution_Resolution : IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_Resolution { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IBwr_ValidationCriteria { public global::System.String? _inventoryItemId { get; } @@ -719,17 +735,20 @@ namespace Foo.Bar public global::System.Decimal? UpperBound { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ValidationCriteria : IBwr_ValidationCriteria { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ValidationCriteria_bwr_ValidationCriteria : IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ValidationCriteria { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ImportSpecification { public global::System.Int32? FromPeriod { get; } @@ -737,12 +756,14 @@ namespace Foo.Bar public global::System.Int32? ToPeriod { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ImportSpecification_bwr_ImportSpecification : IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ImportSpecification { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes__dataPoints { public global::System.DateTimeOffset Timestamp { get; } @@ -752,12 +773,14 @@ namespace Foo.Bar public global::Foo.Bar.DataFlag Flag { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes__dataPoints_DataPoint : IGetBwr_TimeSeries_Bwr_TimeSeries_Nodes__dataPoints { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class bwr_TimeSeriesFilterInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _bwr_TimeSeriesFilterInputFormatter = default !; @@ -1069,6 +1092,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class bwr_TimeSeriesFilterInput : global::Foo.Bar.State.IBwr_TimeSeriesFilterInputInfo, global::System.IEquatable { @@ -1399,7 +1423,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IBwr_TimeSeriesFilterInputInfo.Is_inventoryItemIdSet => _set__inventoryItemId; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class StringOperationFilterInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringOperationFilterInputFormatter = default !; @@ -1682,6 +1707,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class StringOperationFilterInput : global::Foo.Bar.State.IStringOperationFilterInputInfo, global::System.IEquatable { @@ -1970,7 +1996,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IStringOperationFilterInputInfo.IsNendsWithSet => _set_nendsWith; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReferenceTyOfbwr_TimeSeriesFilterInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _referenceTyOfbwr_TimeSeriesFilterInputFormatter = default !; @@ -2074,6 +2101,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReferenceTyOfbwr_TimeSeriesFilterInput : global::Foo.Bar.State.IReferenceTyOfbwr_TimeSeriesFilterInputInfo, global::System.IEquatable { @@ -2188,7 +2216,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IReferenceTyOfbwr_TimeSeriesFilterInputInfo.Is_inventoryItemIdSet => _set__inventoryItemId; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ListRefFilterTyOfbwr_TimeSeriesFilterInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _referenceTyOfbwr_TimeSeriesFilterInputFormatter = default !; @@ -2287,6 +2316,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ListRefFilterTyOfbwr_TimeSeriesFilterInput : global::Foo.Bar.State.IListRefFilterTyOfbwr_TimeSeriesFilterInputInfo, global::System.IEquatable { @@ -2413,7 +2443,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IListRefFilterTyOfbwr_TimeSeriesFilterInputInfo.IsAnySet => _set_any; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReadDataInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringFormatter = default !; @@ -2519,6 +2550,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReadDataInput : global::Foo.Bar.State.IReadDataInputInfo, global::System.IEquatable { @@ -2655,7 +2687,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IReadDataInputInfo.IsAggregationSet => _set_aggregation; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ResolutionInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _timeUnitFormatter = default !; @@ -2706,6 +2739,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ResolutionInput : global::Foo.Bar.State.IResolutionInputInfo, global::System.IEquatable { @@ -2788,7 +2822,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IResolutionInputInfo.IsFactorSet => _set_factor; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum TimeUnit { Millisecond, @@ -2802,7 +2837,8 @@ namespace Foo.Bar Year } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class TimeUnitSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "TimeUnit"; @@ -2839,7 +2875,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum Aggregation { Avg, @@ -2848,7 +2885,8 @@ namespace Foo.Bar Max } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AggregationSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Aggregation"; @@ -2875,7 +2913,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum DataFlag { NoValue, @@ -2883,7 +2922,8 @@ namespace Foo.Bar Missing } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class DataFlagSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "DataFlag"; @@ -2908,6 +2948,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetBwr_TimeSeries GraphQL operation /// @@ -2971,7 +3012,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeriesQueryDocument : global::StrawberryShake.IDocument { private GetBwr_TimeSeriesQueryDocument() @@ -2992,6 +3033,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetBwr_TimeSeries GraphQL operation /// @@ -3055,7 +3097,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeriesQuery : global::Foo.Bar.IGetBwr_TimeSeriesQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -3122,6 +3164,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetBwr_TimeSeries GraphQL operation /// @@ -3185,17 +3228,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBwr_TimeSeriesQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.bwr_TimeSeriesFilterInput? @where, global::Foo.Bar.ReadDataInput readDataInput, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.bwr_TimeSeriesFilterInput? @where, global::Foo.Bar.ReadDataInput readDataInput, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetBwr_TimeSeriesQuery _getBwr_TimeSeries; @@ -3208,10 +3252,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetBwr_TimeSeriesQuery GetBwr_TimeSeries => _getBwr_TimeSeries; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetBwr_TimeSeriesQuery GetBwr_TimeSeries { get; } @@ -3220,6 +3265,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class bwr_TimeSeriesEntity { @@ -3267,6 +3313,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? _dataPoints { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class bwr_ValidationCriteriaEntity { @@ -3290,6 +3337,7 @@ namespace Foo.Bar.State public global::System.Decimal? UpperBound { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class bwr_ImportSpecificationEntity { @@ -3304,7 +3352,8 @@ namespace Foo.Bar.State public global::System.Int32? ToPeriod { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeriesResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3473,7 +3522,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeriesResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -3495,6 +3545,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IBwr_TimeSeriesFilterInputInfo { @@ -3529,6 +3580,7 @@ namespace Foo.Bar.State global::System.Boolean Is_inventoryItemIdSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IStringOperationFilterInputInfo { @@ -3557,6 +3609,7 @@ namespace Foo.Bar.State global::System.Boolean IsNendsWithSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IReferenceTyOfbwr_TimeSeriesFilterInputInfo { @@ -3567,6 +3620,7 @@ namespace Foo.Bar.State global::System.Boolean Is_inventoryItemIdSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IListRefFilterTyOfbwr_TimeSeriesFilterInputInfo { @@ -3579,6 +3633,7 @@ namespace Foo.Bar.State global::System.Boolean IsAnySet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IReadDataInputInfo { @@ -3593,6 +3648,7 @@ namespace Foo.Bar.State global::System.Boolean IsAggregationSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IResolutionInputInfo { @@ -3601,7 +3657,8 @@ namespace Foo.Bar.State global::System.Boolean IsFactorSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeriesBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3965,6 +4022,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class Bwr_TimeSeriesConnectionData @@ -3981,6 +4039,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ResolutionData { @@ -3998,6 +4057,7 @@ namespace Foo.Bar.State public global::System.Int32? Factor { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DataPointData { @@ -4018,7 +4078,8 @@ namespace Foo.Bar.State public global::Foo.Bar.DataFlag? Flag { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeries_Bwr_TimeSeries_Nodes_bwr_TimeSeriesFrombwr_TimeSeriesEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -4123,7 +4184,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ValidationCriteria_bwr_ValidationCriteriaFrombwr_ValidationCriteriaEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -4143,7 +4205,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBwr_TimeSeries_Bwr_TimeSeries_Nodes_ImportSpecification_bwr_ImportSpecificationFrombwr_ImportSpecificationEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -4163,7 +4226,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -4241,7 +4305,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -4252,7 +4317,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Full_Extension_File.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Full_Extension_File.snap index ad54584c3f1..add70198c79 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Full_Extension_File.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Full_Extension_File.snap @@ -16,10 +16,11 @@ namespace Foo.Bar { + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Root type pro read operace nemovizor API. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCountResult : global::System.IEquatable, IGetListingsCountResult { public GetListingsCountResult(global::Foo.Bar.IGetListingsCount_Listings listings) @@ -83,7 +84,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCount_Listings_ListingsPayload : global::System.IEquatable, IGetListingsCount_Listings_ListingsPayload { public GetListingsCount_Listings_ListingsPayload(global::System.Int32 count) @@ -144,10 +146,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Root type pro read operace nemovizor API. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetListingsCountResult { /// @@ -156,22 +159,26 @@ namespace Foo.Bar public global::Foo.Bar.IGetListingsCount_Listings Listings { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IListingsPayload { public global::System.Int32 Count { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetListingsCount_Listings : IListingsPayload { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetListingsCount_Listings_ListingsPayload : IGetListingsCount_Listings { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetListingsCount GraphQL operation /// @@ -187,7 +194,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCountQueryDocument : global::StrawberryShake.IDocument { private GetListingsCountQueryDocument() @@ -208,6 +215,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetListingsCount GraphQL operation /// @@ -223,7 +231,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCountQuery : global::Foo.Bar.IGetListingsCountQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -261,6 +269,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetListingsCount GraphQL operation /// @@ -276,17 +285,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetListingsCountQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetListingsCountQuery _getListingsCount; @@ -299,10 +309,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetListingsCountQuery GetListingsCount => _getListingsCount; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetListingsCountQuery GetListingsCount { get; } @@ -311,7 +322,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCountResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -357,7 +369,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCountResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -382,7 +395,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCountBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -446,6 +460,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ListingsPayloadData { @@ -460,7 +475,8 @@ namespace Foo.Bar.State public global::System.Int32? Count { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -481,7 +497,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -492,7 +509,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.HasuraMutation.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.HasuraMutation.snap index b8ecc6398ae..fb9e087d662 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.HasuraMutation.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.HasuraMutation.snap @@ -16,10 +16,11 @@ namespace Foo.Bar { + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// mutation root /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class InsertPeopleResult : global::System.IEquatable, IInsertPeopleResult { public InsertPeopleResult(global::Foo.Bar.IInsertPeople_Insert_people? insert_People) @@ -87,10 +88,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// response of any mutation on the table "people" /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class InsertPeople_Insert_people_people_mutation_response : global::System.IEquatable, IInsertPeople_Insert_people_people_mutation_response { public InsertPeople_Insert_people_people_mutation_response(global::System.Int32 affected_Rows) @@ -154,10 +156,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// mutation root /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IInsertPeopleResult { /// @@ -166,10 +169,11 @@ namespace Foo.Bar public global::Foo.Bar.IInsertPeople_Insert_people? Insert_people { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// response of any mutation on the table "people" /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IInsertPeople_Insert_people { /// @@ -178,15 +182,17 @@ namespace Foo.Bar public global::System.Int32 Affected_rows { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// response of any mutation on the table "people" /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IInsertPeople_Insert_people_people_mutation_response : IInsertPeople_Insert_people { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class people_insert_inputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _cars_Arr_Rel_Insert_InputFormatter = default !; @@ -287,6 +293,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator ///input type for inserting data into table "people" [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class people_insert_input : global::Foo.Bar.State.IPeople_insert_inputInfo, global::System.IEquatable @@ -414,7 +421,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IPeople_insert_inputInfo.IsLastNameSet => _set_lastName; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class cars_arr_rel_insert_inputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _cars_Insert_InputFormatter = default !; @@ -488,6 +496,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator ///input type for inserting array relation for remote table "cars" [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class cars_arr_rel_insert_input : global::Foo.Bar.State.ICars_arr_rel_insert_inputInfo, global::System.IEquatable @@ -580,7 +589,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.ICars_arr_rel_insert_inputInfo.IsOn_conflictSet => _set_on_Conflict; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class cars_insert_inputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringFormatter = default !; @@ -681,6 +691,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator ///input type for inserting data into table "cars" [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class cars_insert_input : global::Foo.Bar.State.ICars_insert_inputInfo, global::System.IEquatable @@ -808,7 +819,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.ICars_insert_inputInfo.IsPersonSet => _set_person; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class people_obj_rel_insert_inputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _people_Insert_InputFormatter = default !; @@ -871,6 +883,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator ///input type for inserting object relation for remote table "people" [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class people_obj_rel_insert_input : global::Foo.Bar.State.IPeople_obj_rel_insert_inputInfo, global::System.IEquatable @@ -959,7 +972,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IPeople_obj_rel_insert_inputInfo.IsOn_conflictSet => _set_on_Conflict; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class people_on_conflictInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _people_ConstraintFormatter = default !; @@ -1042,6 +1056,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator ///on conflict condition type for table "people" [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class people_on_conflict : global::Foo.Bar.State.IPeople_on_conflictInfo, global::System.IEquatable @@ -1150,7 +1165,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IPeople_on_conflictInfo.IsWhereSet => _set_where; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class people_bool_expInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _people_Bool_ExpFormatter = default !; @@ -1326,6 +1342,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator ///Boolean expression to filter rows from the table "people". All fields are combined with a logical 'AND'. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class people_bool_exp : global::Foo.Bar.State.IPeople_bool_expInfo, global::System.IEquatable @@ -1513,7 +1530,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IPeople_bool_expInfo.IsLastNameSet => _set_lastName; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class cars_bool_expInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _cars_Bool_ExpFormatter = default !; @@ -1689,6 +1707,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator ///Boolean expression to filter rows from the table "cars". All fields are combined with a logical 'AND'. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class cars_bool_exp : global::Foo.Bar.State.ICars_bool_expInfo, global::System.IEquatable @@ -1876,7 +1895,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.ICars_bool_expInfo.IsPersonSet => _set_person; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class String_comparison_expInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _stringFormatter = default !; @@ -2252,6 +2272,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator ///Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class String_comparison_exp : global::Foo.Bar.State.IString_comparison_expInfo, global::System.IEquatable @@ -2665,7 +2686,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IString_comparison_expInfo.Is_similarSet => _set__similar; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class uuid_comparison_expInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _uuidFormatter = default !; @@ -2871,6 +2893,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator ///Boolean expression to compare columns of type "uuid". All fields are combined with logical 'AND'. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class uuid_comparison_exp : global::Foo.Bar.State.IUuid_comparison_expInfo, global::System.IEquatable @@ -3094,7 +3117,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IUuid_comparison_expInfo.Is_ninSet => _set__nin; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class cars_on_conflictInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _cars_ConstraintFormatter = default !; @@ -3177,6 +3201,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator ///on conflict condition type for table "cars" [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class cars_on_conflict : global::Foo.Bar.State.ICars_on_conflictInfo, global::System.IEquatable @@ -3285,10 +3310,11 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.ICars_on_conflictInfo.IsWhereSet => _set_where; } + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator /// /// unique or primary key constraints on table "people" /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum People_constraint { /// @@ -3297,7 +3323,8 @@ namespace Foo.Bar PeoplePkey } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class People_constraintSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "People_constraint"; @@ -3318,10 +3345,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator /// /// update columns of table "people" /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum People_update_column { /// @@ -3338,7 +3366,8 @@ namespace Foo.Bar Lastname } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class People_update_columnSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "People_update_column"; @@ -3363,10 +3392,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator /// /// unique or primary key constraints on table "cars" /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum Cars_constraint { /// @@ -3375,7 +3405,8 @@ namespace Foo.Bar CarsPkey } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class Cars_constraintSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Cars_constraint"; @@ -3396,10 +3427,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator /// /// update columns of table "cars" /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum Cars_update_column { /// @@ -3416,7 +3448,8 @@ namespace Foo.Bar Ownerid } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class Cars_update_columnSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Cars_update_column"; @@ -3441,6 +3474,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the InsertPeople GraphQL operation /// @@ -3452,7 +3486,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class InsertPeopleMutationDocument : global::StrawberryShake.IDocument { private InsertPeopleMutationDocument() @@ -3473,6 +3507,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the InsertPeople GraphQL operation /// @@ -3484,7 +3519,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class InsertPeopleMutation : global::Foo.Bar.IInsertPeopleMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -3547,6 +3582,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the InsertPeople GraphQL operation /// @@ -3558,17 +3594,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IInsertPeopleMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Collections.Generic.IReadOnlyList people, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.Collections.Generic.IReadOnlyList people, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IInsertPeopleMutation _insertPeople; @@ -3581,10 +3618,11 @@ namespace Foo.Bar public global::Foo.Bar.IInsertPeopleMutation InsertPeople => _insertPeople; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IInsertPeopleMutation InsertPeople { get; } @@ -3593,7 +3631,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class InsertPeopleResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3644,7 +3683,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class InsertPeopleResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -3669,6 +3709,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IPeople_insert_inputInfo { @@ -3681,6 +3722,7 @@ namespace Foo.Bar.State global::System.Boolean IsLastNameSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface ICars_arr_rel_insert_inputInfo { @@ -3689,6 +3731,7 @@ namespace Foo.Bar.State global::System.Boolean IsOn_conflictSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface ICars_insert_inputInfo { @@ -3701,6 +3744,7 @@ namespace Foo.Bar.State global::System.Boolean IsPersonSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IPeople_obj_rel_insert_inputInfo { @@ -3709,6 +3753,7 @@ namespace Foo.Bar.State global::System.Boolean IsOn_conflictSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IPeople_on_conflictInfo { @@ -3719,6 +3764,7 @@ namespace Foo.Bar.State global::System.Boolean IsWhereSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IPeople_bool_expInfo { @@ -3737,6 +3783,7 @@ namespace Foo.Bar.State global::System.Boolean IsLastNameSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface ICars_bool_expInfo { @@ -3755,6 +3802,7 @@ namespace Foo.Bar.State global::System.Boolean IsPersonSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IString_comparison_expInfo { @@ -3797,6 +3845,7 @@ namespace Foo.Bar.State global::System.Boolean Is_similarSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IUuid_comparison_expInfo { @@ -3819,6 +3868,7 @@ namespace Foo.Bar.State global::System.Boolean Is_ninSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface ICars_on_conflictInfo { @@ -3829,7 +3879,8 @@ namespace Foo.Bar.State global::System.Boolean IsWhereSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class InsertPeopleBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3907,6 +3958,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///response of any mutation on the table "people" [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class people_mutation_responseData @@ -3923,7 +3975,8 @@ namespace Foo.Bar.State public global::System.Int32? Affected_rows { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -3944,7 +3997,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -3955,7 +4009,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.IntrospectionQuery.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.IntrospectionQuery.snap index 276db64d3be..19c5a02ede9 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.IntrospectionQuery.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.IntrospectionQuery.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQueryResult : global::System.IEquatable, IIntrospectionQueryResult { public IntrospectionQueryResult(global::Foo.Bar.IIntrospectionQuery___schema __schema) @@ -80,10 +81,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema___Schema : global::System.IEquatable, IIntrospectionQuery___schema___Schema { public IntrospectionQuery___schema___Schema(global::Foo.Bar.IIntrospectionQuery___schema_QueryType queryType, global::Foo.Bar.IIntrospectionQuery___schema_MutationType? mutationType, global::Foo.Bar.IIntrospectionQuery___schema_SubscriptionType? subscriptionType, global::System.Collections.Generic.IReadOnlyList types, global::System.Collections.Generic.IReadOnlyList directives) @@ -191,12 +193,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_QueryType___Type : global::System.IEquatable, IIntrospectionQuery___schema_QueryType___Type { public IntrospectionQuery___schema_QueryType___Type(global::System.String? name) @@ -261,12 +264,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_MutationType___Type : global::System.IEquatable, IIntrospectionQuery___schema_MutationType___Type { public IntrospectionQuery___schema_MutationType___Type(global::System.String? name) @@ -331,12 +335,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_SubscriptionType___Type : global::System.IEquatable, IIntrospectionQuery___schema_SubscriptionType___Type { public IntrospectionQuery___schema_SubscriptionType___Type(global::System.String? name) @@ -401,12 +406,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types___Type { public IntrospectionQuery___schema_Types___Type(global::Foo.Bar.__TypeKind kind, global::System.String? name, global::System.String? description, global::System.Collections.Generic.IReadOnlyList? fields, global::System.Collections.Generic.IReadOnlyList? inputFields, global::System.Collections.Generic.IReadOnlyList? interfaces, global::System.Collections.Generic.IReadOnlyList? enumValues, global::System.Collections.Generic.IReadOnlyList? possibleTypes) @@ -538,12 +544,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. /// /// In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Directives___Directive : global::System.IEquatable, IIntrospectionQuery___schema_Directives___Directive { public IntrospectionQuery___schema_Directives___Directive(global::System.String name, global::System.String? description, global::System.Collections.Generic.IReadOnlyList args, global::System.Boolean onOperation, global::System.Boolean onFragment, global::System.Boolean onField) @@ -632,10 +639,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Fields___Field : global::System.IEquatable, IIntrospectionQuery___schema_Types_Fields___Field { public IntrospectionQuery___schema_Types_Fields___Field(global::System.String name, global::System.String? description, global::System.Collections.Generic.IReadOnlyList args, global::Foo.Bar.IIntrospectionQuery___schema_Types_Fields_Type type, global::System.Boolean isDeprecated, global::System.String? deprecationReason) @@ -728,10 +736,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_InputFields___InputValue : global::System.IEquatable, IIntrospectionQuery___schema_Types_InputFields___InputValue { public IntrospectionQuery___schema_Types_InputFields___InputValue(global::System.String name, global::System.String? description, global::Foo.Bar.IIntrospectionQuery___schema_Types_InputFields_Type type, global::System.String? defaultValue) @@ -815,12 +824,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Interfaces___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Interfaces___Type { public IntrospectionQuery___schema_Types_Interfaces___Type(global::Foo.Bar.__TypeKind kind, global::System.String? name, global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType? ofType) @@ -897,10 +907,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_EnumValues___EnumValue : global::System.IEquatable, IIntrospectionQuery___schema_Types_EnumValues___EnumValue { public IntrospectionQuery___schema_Types_EnumValues___EnumValue(global::System.String name, global::System.String? description, global::System.Boolean isDeprecated, global::System.String? deprecationReason) @@ -981,12 +992,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_PossibleTypes___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_PossibleTypes___Type { public IntrospectionQuery___schema_Types_PossibleTypes___Type(global::Foo.Bar.__TypeKind kind, global::System.String? name, global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType? ofType) @@ -1063,10 +1075,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Directives_Args___InputValue : global::System.IEquatable, IIntrospectionQuery___schema_Directives_Args___InputValue { public IntrospectionQuery___schema_Directives_Args___InputValue(global::System.String name, global::System.String? description, global::Foo.Bar.IIntrospectionQuery___schema_Types_InputFields_Type type, global::System.String? defaultValue) @@ -1150,10 +1163,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Fields_Args___InputValue : global::System.IEquatable, IIntrospectionQuery___schema_Types_Fields_Args___InputValue { public IntrospectionQuery___schema_Types_Fields_Args___InputValue(global::System.String name, global::System.String? description, global::Foo.Bar.IIntrospectionQuery___schema_Types_InputFields_Type type, global::System.String? defaultValue) @@ -1237,12 +1251,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Fields_Type___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Fields_Type___Type { public IntrospectionQuery___schema_Types_Fields_Type___Type(global::Foo.Bar.__TypeKind kind, global::System.String? name, global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType? ofType) @@ -1319,12 +1334,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_InputFields_Type___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_InputFields_Type___Type { public IntrospectionQuery___schema_Types_InputFields_Type___Type(global::Foo.Bar.__TypeKind kind, global::System.String? name, global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType? ofType) @@ -1401,12 +1417,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Interfaces_OfType___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Interfaces_OfType___Type { public IntrospectionQuery___schema_Types_Interfaces_OfType___Type(global::Foo.Bar.__TypeKind kind, global::System.String? name, global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? ofType) @@ -1483,12 +1500,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_PossibleTypes_OfType___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_PossibleTypes_OfType___Type { public IntrospectionQuery___schema_Types_PossibleTypes_OfType___Type(global::Foo.Bar.__TypeKind kind, global::System.String? name, global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? ofType) @@ -1565,12 +1583,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Directives_Args_Type___Type : global::System.IEquatable, IIntrospectionQuery___schema_Directives_Args_Type___Type { public IntrospectionQuery___schema_Directives_Args_Type___Type(global::Foo.Bar.__TypeKind kind, global::System.String? name, global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType? ofType) @@ -1647,12 +1666,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Fields_Args_Type___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Fields_Args_Type___Type { public IntrospectionQuery___schema_Types_Fields_Args_Type___Type(global::Foo.Bar.__TypeKind kind, global::System.String? name, global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType? ofType) @@ -1729,12 +1749,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Fields_Type_OfType___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Fields_Type_OfType___Type { public IntrospectionQuery___schema_Types_Fields_Type_OfType___Type(global::Foo.Bar.__TypeKind kind, global::System.String? name, global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? ofType) @@ -1811,12 +1832,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_InputFields_Type_OfType___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_InputFields_Type_OfType___Type { public IntrospectionQuery___schema_Types_InputFields_Type_OfType___Type(global::Foo.Bar.__TypeKind kind, global::System.String? name, global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? ofType) @@ -1893,12 +1915,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Interfaces_OfType_OfType___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType___Type { public IntrospectionQuery___schema_Types_Interfaces_OfType_OfType___Type(global::Foo.Bar.__TypeKind kind, global::System.String? name, global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType? ofType) @@ -1975,12 +1998,13 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType___Type : global::System.IEquatable, IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType___Type { public IntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType___Type(global::Foo.Bar.__TypeKind kind, global::System.String? name) @@ -2049,7 +2073,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQueryResult { /// @@ -2058,10 +2083,11 @@ namespace Foo.Bar public global::Foo.Bar.IIntrospectionQuery___schema __schema { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema { /// @@ -2090,83 +2116,91 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList Directives { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema___Schema : IIntrospectionQuery___schema { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_QueryType { public global::System.String? Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_QueryType___Type : IIntrospectionQuery___schema_QueryType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_MutationType { public global::System.String? Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_MutationType___Type : IIntrospectionQuery___schema_MutationType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_SubscriptionType { public global::System.String? Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_SubscriptionType___Type : IIntrospectionQuery___schema_SubscriptionType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFullType { public global::Foo.Bar.__TypeKind Kind { get; } @@ -2186,32 +2220,35 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? PossibleTypes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types : IFullType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types___Type : IIntrospectionQuery___schema_Types { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. /// /// In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Directives { public global::System.String Name { get; } @@ -2227,20 +2264,22 @@ namespace Foo.Bar public global::System.Boolean OnField { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document. /// /// In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Directives___Directive : IIntrospectionQuery___schema_Directives { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields { public global::System.String Name { get; } @@ -2256,18 +2295,20 @@ namespace Foo.Bar public global::System.String? DeprecationReason { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields___Field : IIntrospectionQuery___schema_Types_Fields { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IInputValue { public global::System.String Name { get; } @@ -2282,28 +2323,31 @@ namespace Foo.Bar public global::System.String? DefaultValue { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_InputFields : IInputValue { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_InputFields___InputValue : IIntrospectionQuery___schema_Types_InputFields { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ITypeRef { public global::Foo.Bar.__TypeKind Kind { get; } @@ -2313,30 +2357,33 @@ namespace Foo.Bar public global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces : ITypeRef { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces___Type : IIntrospectionQuery___schema_Types_Interfaces { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_EnumValues { public global::System.String Name { get; } @@ -2348,112 +2395,124 @@ namespace Foo.Bar public global::System.String? DeprecationReason { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_EnumValues___EnumValue : IIntrospectionQuery___schema_Types_EnumValues { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_PossibleTypes : ITypeRef { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_PossibleTypes___Type : IIntrospectionQuery___schema_Types_PossibleTypes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Directives_Args : IInputValue { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Directives_Args___InputValue : IIntrospectionQuery___schema_Directives_Args { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Args : IInputValue { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Args___InputValue : IIntrospectionQuery___schema_Types_Fields_Args { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Type : ITypeRef { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Type___Type : IIntrospectionQuery___schema_Types_Fields_Type { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_InputFields_Type : ITypeRef { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_InputFields_Type___Type : IIntrospectionQuery___schema_Types_InputFields_Type { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType { public global::Foo.Bar.__TypeKind Kind { get; } @@ -2463,22 +2522,24 @@ namespace Foo.Bar public global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType___Type : IIntrospectionQuery___schema_Types_Interfaces_OfType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_PossibleTypes_OfType { public global::Foo.Bar.__TypeKind Kind { get; } @@ -2488,62 +2549,68 @@ namespace Foo.Bar public global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_PossibleTypes_OfType___Type : IIntrospectionQuery___schema_Types_PossibleTypes_OfType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Directives_Args_Type : ITypeRef { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Directives_Args_Type___Type : IIntrospectionQuery___schema_Directives_Args_Type { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Args_Type : ITypeRef { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Args_Type___Type : IIntrospectionQuery___schema_Types_Fields_Args_Type { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Type_OfType { public global::Foo.Bar.__TypeKind Kind { get; } @@ -2553,22 +2620,24 @@ namespace Foo.Bar public global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Fields_Type_OfType___Type : IIntrospectionQuery___schema_Types_Fields_Type_OfType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_InputFields_Type_OfType { public global::Foo.Bar.__TypeKind Kind { get; } @@ -2578,22 +2647,24 @@ namespace Foo.Bar public global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_InputFields_Type_OfType___Type : IIntrospectionQuery___schema_Types_InputFields_Type_OfType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType { public global::Foo.Bar.__TypeKind Kind { get; } @@ -2603,22 +2674,24 @@ namespace Foo.Bar public global::Foo.Bar.IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType___Type : IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType { public global::Foo.Bar.__TypeKind Kind { get; } @@ -2626,20 +2699,22 @@ namespace Foo.Bar public global::System.String? Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum. /// /// Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType___Type : IIntrospectionQuery___schema_Types_Interfaces_OfType_OfType_OfType { } + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator /// /// An enum describing what kind of type a given `__Type` is. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum __TypeKind { /// @@ -2676,7 +2751,8 @@ namespace Foo.Bar NonNull } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class __TypeKindSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "__TypeKind"; @@ -2711,6 +2787,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the IntrospectionQuery GraphQL operation /// @@ -2819,7 +2896,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQueryQueryDocument : global::StrawberryShake.IDocument { private IntrospectionQueryQueryDocument() @@ -2840,6 +2917,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the IntrospectionQuery GraphQL operation /// @@ -2948,7 +3026,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQueryQuery : global::Foo.Bar.IIntrospectionQueryQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -2986,6 +3064,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the IntrospectionQuery GraphQL operation /// @@ -3094,17 +3173,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IIntrospectionQueryQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IIntrospectionQueryQuery _introspectionQuery; @@ -3117,10 +3197,11 @@ namespace Foo.Bar public global::Foo.Bar.IIntrospectionQueryQuery IntrospectionQuery => _introspectionQuery; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IIntrospectionQueryQuery IntrospectionQuery { get; } @@ -3129,7 +3210,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQueryResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3599,7 +3681,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQueryResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -3624,7 +3707,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class IntrospectionQueryBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -4283,6 +4367,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class __SchemaData @@ -4315,6 +4400,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Directives { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class __TypeData @@ -4354,6 +4440,7 @@ namespace Foo.Bar.State public global::Foo.Bar.State.__TypeData? OfType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class __DirectiveData @@ -4384,6 +4471,7 @@ namespace Foo.Bar.State public global::System.Boolean? OnField { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class __FieldData @@ -4414,6 +4502,7 @@ namespace Foo.Bar.State public global::System.String? DeprecationReason { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class __InputValueData @@ -4439,6 +4528,7 @@ namespace Foo.Bar.State public global::System.String? DefaultValue { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class __EnumValueData @@ -4463,7 +4553,8 @@ namespace Foo.Bar.State public global::System.String? DeprecationReason { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -4484,7 +4575,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -4495,7 +4587,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.LowerCaseScalarArgument.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.LowerCaseScalarArgument.snap index 311390be0fa..55ae2eae219 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.LowerCaseScalarArgument.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.LowerCaseScalarArgument.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleByPkResult : global::System.IEquatable, IGetPeopleByPkResult { public GetPeopleByPkResult(global::Foo.Bar.IGetPeopleByPk_People_by_pk? people_By_Pk) @@ -84,10 +85,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// columns and relationships of "people" /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleByPk_People_by_pk_people : global::System.IEquatable, IGetPeopleByPk_People_by_pk_people { public GetPeopleByPk_People_by_pk_people(global::System.String id, global::System.String firstName, global::System.String lastName) @@ -156,7 +158,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleByPkResult { /// @@ -165,10 +168,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeopleByPk_People_by_pk? People_by_pk { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// columns and relationships of "people" /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleByPk_People_by_pk { public global::System.String Id { get; } @@ -178,14 +182,16 @@ namespace Foo.Bar public global::System.String LastName { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// columns and relationships of "people" /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleByPk_People_by_pk_people : IGetPeopleByPk_People_by_pk { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetPeopleByPk GraphQL operation /// @@ -202,7 +208,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleByPkQueryDocument : global::StrawberryShake.IDocument { private GetPeopleByPkQueryDocument() @@ -223,6 +229,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetPeopleByPk GraphQL operation /// @@ -239,7 +246,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleByPkQuery : global::Foo.Bar.IGetPeopleByPkQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -291,6 +298,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetPeopleByPk GraphQL operation /// @@ -307,17 +315,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetPeopleByPkQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.String id, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.String id, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetPeopleByPkQuery _getPeopleByPk; @@ -330,10 +339,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetPeopleByPkQuery GetPeopleByPk => _getPeopleByPk; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetPeopleByPkQuery GetPeopleByPk { get; } @@ -342,6 +352,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator ///columns and relationships of "people" [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class peopleEntity @@ -360,7 +371,8 @@ namespace Foo.Bar.State public global::System.String LastName { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleByPkResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -408,7 +420,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleByPkResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -433,7 +446,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleByPkBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -511,7 +525,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetPeopleByPk_People_by_pk_peopleFrompeopleEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -531,7 +546,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -571,7 +587,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -582,7 +599,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.MultiLineDocumentation.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.MultiLineDocumentation.snap index efae3895cf0..d6da4b0d32e 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.MultiLineDocumentation.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.MultiLineDocumentation.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooResult : global::System.IEquatable, IFooResult { public FooResult(global::System.String? abc) @@ -85,7 +86,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooResult { /// @@ -95,6 +97,7 @@ namespace Foo.Bar public global::System.String? Abc { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the Foo GraphQL operation /// @@ -103,7 +106,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooQueryDocument : global::StrawberryShake.IDocument { private FooQueryDocument() @@ -124,6 +127,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the Foo GraphQL operation /// @@ -132,7 +136,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooQuery : global::Foo.Bar.IFooQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -170,6 +174,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the Foo GraphQL operation /// @@ -178,17 +183,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IFooQuery _foo; @@ -201,10 +207,11 @@ namespace Foo.Bar public global::Foo.Bar.IFooQuery Foo => _foo; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IFooQuery Foo { get; } @@ -213,7 +220,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -244,7 +252,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -270,7 +279,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -313,7 +323,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -334,7 +345,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -345,7 +357,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.NodeTypenameCollision.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.NodeTypenameCollision.snap index be6e27b7af0..043a30ef02d 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.NodeTypenameCollision.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.NodeTypenameCollision.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class NodesResult : global::System.IEquatable, INodesResult { public NodesResult(global::Foo.Bar.INodes_Node? node) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class Nodes_Node_Workspace : global::System.IEquatable, INodes_Node_Workspace { public Nodes_Node_Workspace(global::System.String __typename, global::System.String id) @@ -149,13 +151,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface INodesResult { public global::Foo.Bar.INodes_Node? Node { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface INodes_Node { public global::System.String __typename { get; } @@ -163,11 +167,13 @@ namespace Foo.Bar public global::System.String Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface INodes_Node_Workspace : INodes_Node { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the Nodes GraphQL operation /// @@ -182,7 +188,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class NodesQueryDocument : global::StrawberryShake.IDocument { private NodesQueryDocument() @@ -203,6 +209,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the Nodes GraphQL operation /// @@ -217,7 +224,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class NodesQuery : global::Foo.Bar.INodesQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -269,6 +276,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the Nodes GraphQL operation /// @@ -283,17 +291,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface INodesQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.String id, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.String id, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.INodesQuery _nodes; @@ -306,10 +315,11 @@ namespace Foo.Bar public global::Foo.Bar.INodesQuery Nodes => _nodes; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.INodesQuery Nodes { get; } @@ -318,6 +328,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class WorkspaceEntity { @@ -333,7 +344,8 @@ namespace Foo.Bar.State public global::System.String Id { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class NodesResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -381,7 +393,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class NodesResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -403,7 +416,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class NodesBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -481,7 +495,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class Nodes_Node_WorkspaceFromWorkspaceEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -501,7 +516,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -541,7 +557,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -552,7 +569,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.NonNullLists.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.NonNullLists.snap index 0ccc2703dc9..d7e8833f80e 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.NonNullLists.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.NonNullLists.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllResult : global::System.IEquatable, IGetAllResult { public GetAllResult(global::System.Collections.Generic.IReadOnlyList listings) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAll_Listings_Offer : global::System.IEquatable, IGetAll_Listings_Offer { public GetAll_Listings_Offer(global::System.Collections.Generic.IReadOnlyList amenities1, global::System.Collections.Generic.IReadOnlyList? amenities2, global::System.Collections.Generic.IReadOnlyList amenities3, global::System.Collections.Generic.IReadOnlyList? amenities4, global::System.Collections.Generic.IReadOnlyList> amenities5, global::System.Collections.Generic.IReadOnlyList>? amenities6, global::System.Collections.Generic.IReadOnlyList?> amenities7) @@ -221,18 +223,21 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAllResult { public global::System.Collections.Generic.IReadOnlyList Listings { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAll_Listings { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOffer { public global::System.Collections.Generic.IReadOnlyList Amenities1 { get; } @@ -250,19 +255,22 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList?> Amenities7 { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAll_Listings_Offer : IGetAll_Listings, IOffer { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum Amenity { Item1, Item2 } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class AmenitySerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Amenity"; @@ -285,6 +293,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetAll GraphQL operation /// @@ -306,7 +315,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllQueryDocument : global::StrawberryShake.IDocument { private GetAllQueryDocument() @@ -327,6 +336,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetAll GraphQL operation /// @@ -348,7 +358,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllQuery : global::Foo.Bar.IGetAllQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -386,6 +396,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetAll GraphQL operation /// @@ -407,17 +418,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAllQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetAllQuery _getAll; @@ -430,10 +442,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetAllQuery GetAll => _getAll; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetAllQuery GetAll { get; } @@ -442,7 +455,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -504,7 +518,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -526,7 +541,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -773,12 +789,14 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IListingData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class OfferData : IListingData { @@ -811,7 +829,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList?>? Amenities7 { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -832,7 +851,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -843,7 +863,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.QueryInterference.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.QueryInterference.snap index 8ea32392f9a..4c9fe5e9eb9 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.QueryInterference.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.QueryInterference.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPageResult : global::System.IEquatable, IGetFeatsPageResult { public GetFeatsPageResult(global::Foo.Bar.IGetFeatsPage_Feats? feats) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPage_Feats_FeatCollectionSegment : global::System.IEquatable, IGetFeatsPage_Feats_FeatCollectionSegment { public GetFeatsPage_Feats_FeatCollectionSegment(global::System.Int32 totalCount, global::System.Collections.Generic.IReadOnlyList? items) @@ -156,7 +158,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPage_Feats_Items_Feat : global::System.IEquatable, IGetFeatsPage_Feats_Items_Feat { public GetFeatsPage_Feats_Items_Feat(global::System.Guid id, global::System.String name, global::System.Int32 level, global::System.Boolean canBeLearnedMoreThanOnce, global::System.Collections.Generic.IReadOnlyList details) @@ -237,7 +240,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPage_Feats_Items_Details_FeatDetailsBlock : global::System.IEquatable, IGetFeatsPage_Feats_Items_Details_FeatDetailsBlock { public GetFeatsPage_Feats_Items_Details_FeatDetailsBlock(global::System.String text) @@ -298,13 +302,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPageResult { public global::Foo.Bar.IGetFeatsPage_Feats? Feats { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPage_Feats { public global::System.Int32 TotalCount { get; } @@ -312,12 +318,14 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Items { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPage_Feats_FeatCollectionSegment : IGetFeatsPage_Feats { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFeatsPage { public global::System.Guid Id { get; } @@ -331,28 +339,33 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList Details { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPage_Feats_Items : IFeatsPage { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPage_Feats_Items_Feat : IGetFeatsPage_Feats_Items { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPage_Feats_Items_Details { public global::System.String Text { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPage_Feats_Items_Details_FeatDetailsBlock : IGetFeatsPage_Feats_Items_Details { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatByIdResult : global::System.IEquatable, IGetFeatByIdResult { public GetFeatByIdResult(global::Foo.Bar.IGetFeatById_Feats? feats) @@ -417,7 +430,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatById_Feats_FeatCollectionSegment : global::System.IEquatable, IGetFeatById_Feats_FeatCollectionSegment { public GetFeatById_Feats_FeatCollectionSegment(global::System.Collections.Generic.IReadOnlyList? items) @@ -488,7 +502,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatById_Feats_Items_Feat : global::System.IEquatable, IGetFeatById_Feats_Items_Feat { public GetFeatById_Feats_Items_Feat(global::System.Guid id, global::System.String name, global::System.Int32 level, global::System.String? special, global::System.String? trigger, global::System.Collections.Generic.IReadOnlyList details, global::Foo.Bar.IGetFeatById_Feats_Items_ActionType actionType) @@ -585,7 +600,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatById_Feats_Items_Details_FeatDetailsBlock : global::System.IEquatable, IGetFeatById_Feats_Items_Details_FeatDetailsBlock { public GetFeatById_Feats_Items_Details_FeatDetailsBlock(global::System.String text) @@ -646,7 +662,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatById_Feats_Items_ActionType_ActionType : global::System.IEquatable, IGetFeatById_Feats_Items_ActionType_ActionType { public GetFeatById_Feats_Items_ActionType_ActionType(global::System.String name) @@ -707,24 +724,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatByIdResult { public global::Foo.Bar.IGetFeatById_Feats? Feats { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats { public global::System.Collections.Generic.IReadOnlyList? Items { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats_FeatCollectionSegment : IGetFeatById_Feats { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFeatById { public global::System.Guid Id { get; } @@ -742,39 +763,46 @@ namespace Foo.Bar public global::Foo.Bar.IGetFeatById_Feats_Items_ActionType ActionType { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats_Items : IFeatById { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats_Items_Feat : IGetFeatById_Feats_Items { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats_Items_Details { public global::System.String Text { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats_Items_Details_FeatDetailsBlock : IGetFeatById_Feats_Items_Details { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats_Items_ActionType { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatById_Feats_Items_ActionType_ActionType : IGetFeatById_Feats_Items_ActionType { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FeatSortInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _sortEnumTypeFormatter = default !; @@ -1049,6 +1077,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FeatSortInput : global::Foo.Bar.State.IFeatSortInputInfo, global::System.IEquatable { @@ -1355,7 +1384,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IFeatSortInputInfo.IsIdSet => _set_id; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ActionTypeSortInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _sortEnumTypeFormatter = default !; @@ -1418,6 +1448,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ActionTypeSortInput : global::Foo.Bar.State.IActionTypeSortInputInfo, global::System.IEquatable { @@ -1508,7 +1539,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IActionTypeSortInputInfo.IsIdSet => _set_id; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FeatTypeSortInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _sortEnumTypeFormatter = default !; @@ -1571,6 +1603,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FeatTypeSortInput : global::Foo.Bar.State.IFeatTypeSortInputInfo, global::System.IEquatable { @@ -1661,7 +1694,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IFeatTypeSortInputInfo.IsIdSet => _set_id; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FrequencySortInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _sortEnumTypeFormatter = default !; @@ -1758,6 +1792,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FrequencySortInput : global::Foo.Bar.State.IFrequencySortInputInfo, global::System.IEquatable { @@ -1884,7 +1919,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IFrequencySortInputInfo.IsIdSet => _set_id; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class RollableEffectSortInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _sortEnumTypeFormatter = default !; @@ -1998,6 +2034,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class RollableEffectSortInput : global::Foo.Bar.State.IRollableEffectSortInputInfo, global::System.IEquatable { @@ -2142,14 +2179,16 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IRollableEffectSortInputInfo.IsIdSet => _set_id; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum SortEnumType { Asc, Desc } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SortEnumTypeSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "SortEnumType"; @@ -2172,6 +2211,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetFeatsPage GraphQL operation /// @@ -2204,7 +2244,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPageQueryDocument : global::StrawberryShake.IDocument { private GetFeatsPageQueryDocument() @@ -2225,6 +2265,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetFeatsPage GraphQL operation /// @@ -2257,7 +2298,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPageQuery : global::Foo.Bar.IGetFeatsPageQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -2349,6 +2390,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetFeatsPage GraphQL operation /// @@ -2381,13 +2423,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatsPageQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Int32 skip, global::System.Int32 take, global::System.String searchTerm, global::System.Collections.Generic.IReadOnlyList? order, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.Int32 skip, global::System.Int32 take, global::System.String searchTerm, global::System.Collections.Generic.IReadOnlyList? order, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetFeatById GraphQL operation /// @@ -2427,7 +2470,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatByIdQueryDocument : global::StrawberryShake.IDocument { private GetFeatByIdQueryDocument() @@ -2448,6 +2491,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetFeatById GraphQL operation /// @@ -2487,7 +2531,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatByIdQuery : global::Foo.Bar.IGetFeatByIdQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -2534,6 +2578,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetFeatById GraphQL operation /// @@ -2573,17 +2618,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetFeatByIdQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Guid id, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.Guid id, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetFeatsPageQuery _getFeatsPage; @@ -2599,10 +2645,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetFeatByIdQuery GetFeatById => _getFeatById; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetFeatsPageQuery GetFeatsPage { get; } @@ -2613,6 +2660,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FeatEntity { @@ -2645,6 +2693,7 @@ namespace Foo.Bar.State public global::StrawberryShake.EntityId ActionType { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FeatDetailsBlockEntity { @@ -2656,6 +2705,7 @@ namespace Foo.Bar.State public global::System.String Text { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ActionTypeEntity { @@ -2667,7 +2717,8 @@ namespace Foo.Bar.State public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPageResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2779,7 +2830,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPageResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -2801,7 +2853,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatByIdResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -2925,7 +2978,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatByIdResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -2947,6 +3001,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IFeatSortInputInfo { @@ -2979,6 +3034,7 @@ namespace Foo.Bar.State global::System.Boolean IsIdSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IActionTypeSortInputInfo { @@ -2987,6 +3043,7 @@ namespace Foo.Bar.State global::System.Boolean IsIdSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IFeatTypeSortInputInfo { @@ -2995,6 +3052,7 @@ namespace Foo.Bar.State global::System.Boolean IsIdSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IFrequencySortInputInfo { @@ -3007,6 +3065,7 @@ namespace Foo.Bar.State global::System.Boolean IsIdSet { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IRollableEffectSortInputInfo { @@ -3021,7 +3080,8 @@ namespace Foo.Bar.State global::System.Boolean IsIdSet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPageBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3244,7 +3304,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatByIdBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3494,6 +3555,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FeatCollectionSegmentData { @@ -3511,7 +3573,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Items { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPage_Feats_Items_FeatFromFeatEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3559,7 +3622,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatsPage_Feats_Items_Details_FeatDetailsBlockFromFeatDetailsBlockEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3579,7 +3643,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatById_Feats_Items_FeatFromFeatEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3639,7 +3704,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatById_Feats_Items_Details_FeatDetailsBlockFromFeatDetailsBlockEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3659,7 +3725,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetFeatById_Feats_Items_ActionType_ActionTypeFromActionTypeEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -3679,7 +3746,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -3757,7 +3825,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -3768,7 +3837,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Query_With_Nested_Fragments.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Query_With_Nested_Fragments.snap index d03b622bb61..d8c3cc6066f 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Query_With_Nested_Fragments.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Query_With_Nested_Fragments.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllResult : global::System.IEquatable, IGetAllResult { public GetAllResult(global::Foo.Bar.IGetAll_Listings listings) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAll_Listings_ListingsPayload : global::System.IEquatable, IGetAll_Listings_ListingsPayload { public GetAll_Listings_ListingsPayload(global::System.Collections.Generic.IReadOnlyList items) @@ -142,7 +144,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAll_Listings_Items_Auction : global::System.IEquatable, IGetAll_Listings_Items_Auction { public GetAll_Listings_Items_Auction(global::System.String listingId, global::System.Int32 startingPrice) @@ -207,7 +210,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAll_Listings_Items_Offer : global::System.IEquatable, IGetAll_Listings_Items_Offer { public GetAll_Listings_Items_Offer(global::System.String listingId, global::System.Int32 price) @@ -272,61 +276,72 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAllResult { public global::Foo.Bar.IGetAll_Listings Listings { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IListingsPayload { public global::System.Collections.Generic.IReadOnlyList Items { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAll_Listings : IListingsPayload { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAll_Listings_ListingsPayload : IGetAll_Listings { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IHasListingId { public global::System.String ListingId { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAll_Listings_Items : IHasListingId { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IAuction { public global::System.Int32 StartingPrice { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAll_Listings_Items_Auction : IGetAll_Listings_Items, IAuction { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOffer { public global::System.Int32 Price { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAll_Listings_Items_Offer : IGetAll_Listings_Items, IOffer { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetAll GraphQL operation /// @@ -359,7 +374,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllQueryDocument : global::StrawberryShake.IDocument { private GetAllQueryDocument() @@ -380,6 +395,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetAll GraphQL operation /// @@ -412,7 +428,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllQuery : global::Foo.Bar.IGetAllQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -450,6 +466,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetAll GraphQL operation /// @@ -482,17 +499,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetAllQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetAllQuery _getAll; @@ -505,10 +523,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetAllQuery GetAll => _getAll; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetAllQuery GetAll { get; } @@ -517,7 +536,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -608,7 +628,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -630,7 +651,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetAllBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -758,6 +780,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ListingsPayloadData { @@ -772,12 +795,14 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Items { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial interface IListingData { global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class AuctionData : IListingData { @@ -795,6 +820,7 @@ namespace Foo.Bar.State public global::System.Int32? StartingPrice { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class OfferData : IListingData { @@ -812,7 +838,8 @@ namespace Foo.Bar.State public global::System.Int32? Price { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -833,7 +860,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -844,7 +872,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Schema_With_Spec_Errors.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Schema_With_Spec_Errors.snap index ad54584c3f1..add70198c79 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Schema_With_Spec_Errors.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/SchemaGeneratorTests.Schema_With_Spec_Errors.snap @@ -16,10 +16,11 @@ namespace Foo.Bar { + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// Root type pro read operace nemovizor API. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCountResult : global::System.IEquatable, IGetListingsCountResult { public GetListingsCountResult(global::Foo.Bar.IGetListingsCount_Listings listings) @@ -83,7 +84,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCount_Listings_ListingsPayload : global::System.IEquatable, IGetListingsCount_Listings_ListingsPayload { public GetListingsCount_Listings_ListingsPayload(global::System.Int32 count) @@ -144,10 +146,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// Root type pro read operace nemovizor API. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetListingsCountResult { /// @@ -156,22 +159,26 @@ namespace Foo.Bar public global::Foo.Bar.IGetListingsCount_Listings Listings { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IListingsPayload { public global::System.Int32 Count { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetListingsCount_Listings : IListingsPayload { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetListingsCount_Listings_ListingsPayload : IGetListingsCount_Listings { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetListingsCount GraphQL operation /// @@ -187,7 +194,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCountQueryDocument : global::StrawberryShake.IDocument { private GetListingsCountQueryDocument() @@ -208,6 +215,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetListingsCount GraphQL operation /// @@ -223,7 +231,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCountQuery : global::Foo.Bar.IGetListingsCountQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -261,6 +269,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetListingsCount GraphQL operation /// @@ -276,17 +285,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetListingsCountQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetListingsCountQuery _getListingsCount; @@ -299,10 +309,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetListingsCountQuery GetListingsCount => _getListingsCount; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetListingsCountQuery GetListingsCount { get; } @@ -311,7 +322,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCountResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -357,7 +369,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCountResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -382,7 +395,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetListingsCountBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -446,6 +460,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ListingsPayloadData { @@ -460,7 +475,8 @@ namespace Foo.Bar.State public global::System.Int32? Count { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -481,7 +497,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -492,7 +509,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Generate_Client_With_Internal_Access_Modifier.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Generate_Client_With_Internal_Access_Modifier.snap index 79319c674fd..01fe56e83dd 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Generate_Client_With_Internal_Access_Modifier.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Generate_Client_With_Internal_Access_Modifier.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::Foo.Bar.IGetHero_Hero? hero) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String name, global::System.Collections.Generic.IReadOnlyList? appearsIn) @@ -156,7 +158,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String name, global::System.Collections.Generic.IReadOnlyList? appearsIn) @@ -231,13 +234,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial interface IGetHeroResult { public global::Foo.Bar.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial interface IGetHero_Hero { public global::System.String Name { get; } @@ -245,17 +250,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial interface IGetHero_Hero_Droid : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial interface IGetHero_Hero_Human : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal enum Episode { NewHope, @@ -263,7 +271,8 @@ namespace Foo.Bar Jedi } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class EpisodeSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Episode"; @@ -288,6 +297,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -306,7 +316,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -327,6 +337,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -345,7 +356,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class GetHeroQuery : global::Foo.Bar.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -383,6 +394,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -401,17 +413,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetHeroQuery _getHero; @@ -424,10 +437,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial interface IFooClient { global::Foo.Bar.IGetHeroQuery GetHero { get; } @@ -436,6 +450,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal partial class DroidEntity { @@ -450,6 +465,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal partial class HumanEntity { @@ -464,7 +480,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -519,7 +536,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -541,7 +559,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -669,7 +688,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class GetHero_Hero_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -689,7 +709,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class GetHero_Hero_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -709,7 +730,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -768,7 +790,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -779,7 +802,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] internal static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Generate_StarWarsIntegrationTest.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Generate_StarWarsIntegrationTest.snap index 712a549bef5..cf12447a3de 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Generate_StarWarsIntegrationTest.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Generate_StarWarsIntegrationTest.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewResult : global::System.IEquatable, ICreateReviewResult { public CreateReviewResult(global::Foo.Bar.ICreateReview_CreateReview createReview) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReview_CreateReview_Review : global::System.IEquatable, ICreateReview_CreateReview_Review { public CreateReview_CreateReview_Review(global::System.Int32 stars) @@ -138,24 +140,28 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewResult { public global::Foo.Bar.ICreateReview_CreateReview CreateReview { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReview_CreateReview { public global::System.Int32 Stars { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReview_CreateReview_Review : ICreateReview_CreateReview { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewResult : global::System.IEquatable, IOnReviewResult { public OnReviewResult(global::Foo.Bar.IOnReview_OnReview onReview) @@ -216,7 +222,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReview_OnReview_Review : global::System.IEquatable, IOnReview_OnReview_Review { public OnReview_OnReview_Review(global::System.Int32 stars) @@ -277,23 +284,27 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewResult { public global::Foo.Bar.IOnReview_OnReview OnReview { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReview_OnReview { public global::System.Int32 Stars { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReview_OnReview_Review : IOnReview_OnReview { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the CreateReview GraphQL operation /// @@ -305,7 +316,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutationDocument : global::StrawberryShake.IDocument { private CreateReviewMutationDocument() @@ -326,6 +337,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the CreateReview GraphQL operation /// @@ -337,7 +349,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutation : global::Foo.Bar.ICreateReviewMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -384,6 +396,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the CreateReview GraphQL operation /// @@ -395,13 +408,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Int32 stars, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.Int32 stars, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnReview GraphQL operation /// @@ -413,7 +427,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubscriptionDocument : global::StrawberryShake.IDocument { private OnReviewSubscriptionDocument() @@ -434,6 +448,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnReview GraphQL operation /// @@ -445,7 +460,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubscription : global::Foo.Bar.IOnReviewSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -477,6 +492,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the OnReview GraphQL operation /// @@ -488,16 +504,17 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ICreateReviewMutation _createReview; @@ -513,10 +530,11 @@ namespace Foo.Bar public global::Foo.Bar.IOnReviewSubscription OnReview => _onReview; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ICreateReviewMutation CreateReview { get; } @@ -527,7 +545,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -573,7 +592,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -595,7 +615,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -641,7 +662,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -663,7 +685,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -727,7 +750,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -791,6 +815,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReviewData { @@ -805,7 +830,8 @@ namespace Foo.Bar.State public global::System.Int32? Stars { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -826,7 +852,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -837,7 +864,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Interface_With_Default_Names.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Interface_With_Default_Names.snap index f196f56e198..fea2a551595 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Interface_With_Default_Names.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Interface_With_Default_Names.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::Foo.Bar.IGetHero_Hero? hero) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String name, global::System.Collections.Generic.IReadOnlyList? appearsIn) @@ -156,7 +158,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String name, global::System.Collections.Generic.IReadOnlyList? appearsIn) @@ -231,13 +234,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::Foo.Bar.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero { public global::System.String Name { get; } @@ -245,17 +250,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum Episode { NewHope, @@ -263,7 +271,8 @@ namespace Foo.Bar Jedi } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class EpisodeSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Episode"; @@ -288,6 +297,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -306,7 +316,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -327,6 +337,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -345,7 +356,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::Foo.Bar.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -383,6 +394,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -401,17 +413,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetHeroQuery _getHero; @@ -424,10 +437,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetHeroQuery GetHero { get; } @@ -436,6 +450,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -450,6 +465,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -464,7 +480,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -519,7 +536,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -541,7 +559,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -669,7 +688,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -689,7 +709,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -709,7 +730,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -768,7 +790,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -779,7 +802,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Interface_With_Fragment_Definition_Two_Models.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Interface_With_Fragment_Definition_Two_Models.snap index 41247710eeb..72a6a17c771 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Interface_With_Fragment_Definition_Two_Models.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Interface_With_Fragment_Definition_Two_Models.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::Foo.Bar.IGetHero_Hero? hero) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String name, global::System.String? primaryFunction, global::Foo.Bar.IGetHero_Hero_Friends? friends) @@ -158,7 +160,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String name, global::System.String? homePlanet, global::Foo.Bar.IGetHero_Hero_Friends? friends) @@ -235,10 +238,11 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_FriendsConnection : global::System.IEquatable, IGetHero_Hero_Friends_FriendsConnection { public GetHero_Hero_Friends_FriendsConnection(global::System.Collections.Generic.IReadOnlyList? nodes) @@ -312,7 +316,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Droid : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Droid { public GetHero_Hero_Friends_Nodes_Droid(global::System.String name) @@ -373,7 +378,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_Human : global::System.IEquatable, IGetHero_Hero_Friends_Nodes_Human { public GetHero_Hero_Friends_Nodes_Human(global::System.String name) @@ -434,13 +440,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::Foo.Bar.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IHero { public global::System.String Name { get; } @@ -448,18 +456,21 @@ namespace Foo.Bar public global::Foo.Bar.IGetHero_Hero_Friends? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero : IHero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IDroid { public global::System.String? PrimaryFunction { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IHero_Droid : IDroid { public global::System.String Name { get; } @@ -467,18 +478,21 @@ namespace Foo.Bar public global::Foo.Bar.IGetHero_Hero_Friends? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero, IHero_Droid { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IHuman { public global::System.String? HomePlanet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IHero_Human : IHuman { public global::System.String Name { get; } @@ -486,15 +500,17 @@ namespace Foo.Bar public global::Foo.Bar.IGetHero_Hero_Friends? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero, IHero_Human { } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends { /// @@ -503,30 +519,35 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator /// /// A connection to a list of items. /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_FriendsConnection : IGetHero_Hero_Friends { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Droid : IGetHero_Hero_Friends_Nodes { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Friends_Nodes_Human : IGetHero_Hero_Friends_Nodes { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -571,7 +592,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -592,6 +613,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -636,7 +658,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::Foo.Bar.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -674,6 +696,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -718,17 +741,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetHeroQuery _getHero; @@ -741,10 +765,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetHeroQuery GetHero { get; } @@ -753,6 +778,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -770,6 +796,7 @@ namespace Foo.Bar.State public global::Foo.Bar.State.FriendsConnectionData? Friends { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -787,7 +814,8 @@ namespace Foo.Bar.State public global::Foo.Bar.State.FriendsConnectionData? Friends { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -842,7 +870,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -864,7 +893,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1056,6 +1086,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator ///A connection to a list of items. [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class FriendsConnectionData @@ -1072,7 +1103,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? Nodes { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1152,7 +1184,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1232,7 +1265,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1252,7 +1286,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Friends_Nodes_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1272,7 +1307,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1331,7 +1367,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1342,7 +1379,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Operation_With_Leaf_Argument.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Operation_With_Leaf_Argument.snap index c6205209dc9..bb1e777d814 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Operation_With_Leaf_Argument.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Operation_With_Leaf_Argument.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResult : global::System.IEquatable, IGetHeroResult { public GetHeroResult(global::Foo.Bar.IGetHero_Hero? hero) @@ -81,7 +82,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Droid : global::System.IEquatable, IGetHero_Hero_Droid { public GetHero_Hero_Droid(global::System.String name, global::System.Collections.Generic.IReadOnlyList? appearsIn) @@ -156,7 +158,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_Human : global::System.IEquatable, IGetHero_Hero_Human { public GetHero_Hero_Human(global::System.String name, global::System.Collections.Generic.IReadOnlyList? appearsIn) @@ -231,13 +234,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroResult { public global::Foo.Bar.IGetHero_Hero? Hero { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero { public global::System.String Name { get; } @@ -245,17 +250,20 @@ namespace Foo.Bar public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Droid : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHero_Hero_Human : IGetHero_Hero { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum Episode { NewHope, @@ -263,7 +271,8 @@ namespace Foo.Bar Jedi } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class EpisodeSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Episode"; @@ -288,6 +297,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -306,7 +316,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQueryDocument : global::StrawberryShake.IDocument { private GetHeroQueryDocument() @@ -327,6 +337,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -345,7 +356,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroQuery : global::Foo.Bar.IGetHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -399,6 +410,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetHero GraphQL operation /// @@ -417,17 +429,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Episode? episode, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Episode? episode, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetHeroQuery _getHero; @@ -440,10 +453,11 @@ namespace Foo.Bar public global::Foo.Bar.IGetHeroQuery GetHero => _getHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetHeroQuery GetHero { get; } @@ -452,6 +466,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -466,6 +481,7 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -480,7 +496,8 @@ namespace Foo.Bar.State public global::System.Collections.Generic.IReadOnlyList? AppearsIn { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -535,7 +552,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -557,7 +575,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -685,7 +704,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -705,7 +725,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetHero_Hero_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -725,7 +746,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -784,7 +806,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -795,7 +818,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Operation_With_Type_Argument.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Operation_With_Type_Argument.snap index 81228d7d78b..40632786d68 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Operation_With_Type_Argument.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Operation_With_Type_Argument.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutResult : global::System.IEquatable, ICreateReviewMutResult { public CreateReviewMutResult(global::Foo.Bar.ICreateReviewMut_CreateReview createReview) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMut_CreateReview_Review : global::System.IEquatable, ICreateReviewMut_CreateReview_Review { public CreateReviewMut_CreateReview_Review(global::System.Int32 stars, global::System.String? commentary) @@ -146,13 +148,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMutResult { public global::Foo.Bar.ICreateReviewMut_CreateReview CreateReview { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMut_CreateReview { public global::System.Int32 Stars { get; } @@ -160,12 +164,14 @@ namespace Foo.Bar public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMut_CreateReview_Review : ICreateReviewMut_CreateReview { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.InputValueFormatterGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class ReviewInputInputValueFormatter : global::StrawberryShake.Serialization.IInputObjectFormatter { private global::StrawberryShake.Serialization.IInputValueFormatter _intFormatter = default !; @@ -223,6 +229,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReviewInput : global::Foo.Bar.State.IReviewInputInfo, global::System.IEquatable { @@ -309,7 +316,8 @@ namespace Foo.Bar global::System.Boolean global::Foo.Bar.State.IReviewInputInfo.IsCommentarySet => _set_commentary; } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public enum Episode { NewHope, @@ -317,7 +325,8 @@ namespace Foo.Bar Jedi } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EnumParserGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class EpisodeSerializer : global::StrawberryShake.Serialization.IInputValueFormatter, global::StrawberryShake.Serialization.ILeafValueParser { public global::System.String TypeName => "Episode"; @@ -342,6 +351,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the CreateReviewMut GraphQL operation /// @@ -354,7 +364,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutMutationDocument : global::StrawberryShake.IDocument { private CreateReviewMutMutationDocument() @@ -375,6 +385,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the CreateReviewMut GraphQL operation /// @@ -387,7 +398,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutMutation : global::Foo.Bar.ICreateReviewMutMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -447,6 +458,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the CreateReviewMut GraphQL operation /// @@ -459,17 +471,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ICreateReviewMutMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::Foo.Bar.Episode episode, global::Foo.Bar.ReviewInput review, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::Foo.Bar.Episode episode, global::Foo.Bar.ReviewInput review, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ICreateReviewMutMutation _createReviewMut; @@ -482,10 +495,11 @@ namespace Foo.Bar public global::Foo.Bar.ICreateReviewMutMutation CreateReviewMut => _createReviewMut; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ICreateReviewMutMutation CreateReviewMut { get; } @@ -494,7 +508,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -540,7 +555,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -562,6 +578,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.InputTypeStateInterfaceGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] internal interface IReviewInputInfo { @@ -570,7 +587,8 @@ namespace Foo.Bar.State global::System.Boolean IsCommentarySet { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class CreateReviewMutBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -653,6 +671,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReviewData { @@ -670,7 +689,8 @@ namespace Foo.Bar.State public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -691,7 +711,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -702,7 +723,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.StarWarsTypeNameOnUnions.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.StarWarsTypeNameOnUnions.snap index 0ccf81a54b0..73f21bdd7cd 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.StarWarsTypeNameOnUnions.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.StarWarsTypeNameOnUnions.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResult : global::System.IEquatable, ISearchHeroResult { public SearchHeroResult(global::System.Collections.Generic.IReadOnlyList? search) @@ -87,7 +88,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Starship : global::System.IEquatable, ISearchHero_Search_Starship { public SearchHero_Search_Starship(global::System.String __typename) @@ -151,7 +153,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Human : global::System.IEquatable, ISearchHero_Search_Human { public SearchHero_Search_Human(global::System.String __typename) @@ -215,7 +218,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Droid : global::System.IEquatable, ISearchHero_Search_Droid { public SearchHero_Search_Droid(global::System.String __typename) @@ -279,33 +283,39 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHeroResult { public global::System.Collections.Generic.IReadOnlyList? Search { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search { public global::System.String __typename { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Starship : ISearchHero_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Human : ISearchHero_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Droid : ISearchHero_Search { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -325,7 +335,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroQueryDocument : global::StrawberryShake.IDocument { private SearchHeroQueryDocument() @@ -346,6 +356,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -365,7 +376,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroQuery : global::Foo.Bar.ISearchHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -403,6 +414,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -422,17 +434,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ISearchHeroQuery _searchHero; @@ -445,10 +458,11 @@ namespace Foo.Bar public global::Foo.Bar.ISearchHeroQuery SearchHero => _searchHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ISearchHeroQuery SearchHero { get; } @@ -457,6 +471,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class StarshipEntity { @@ -469,6 +484,7 @@ namespace Foo.Bar.State public global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -481,6 +497,7 @@ namespace Foo.Bar.State public global::System.String __typename { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -493,7 +510,8 @@ namespace Foo.Bar.State public global::System.String __typename { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -571,7 +589,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -593,7 +612,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -718,7 +738,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_StarshipFromStarshipEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -738,7 +759,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -758,7 +780,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -778,7 +801,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -856,7 +880,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -867,7 +892,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.StarWarsUnionList.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.StarWarsUnionList.snap index 08a4ef58f01..d85d3539c4f 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.StarWarsUnionList.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.StarWarsUnionList.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResult : global::System.IEquatable, ISearchHeroResult { public SearchHeroResult(global::System.Collections.Generic.IReadOnlyList? search) @@ -87,7 +88,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Starship : global::System.IEquatable, ISearchHero_Search_Starship { public SearchHero_Search_Starship() @@ -144,7 +146,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Human : global::System.IEquatable, ISearchHero_Search_Human { public SearchHero_Search_Human(global::System.String name) @@ -205,7 +208,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_Droid : global::System.IEquatable, ISearchHero_Search_Droid { public SearchHero_Search_Droid(global::System.String name) @@ -266,34 +270,40 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHeroResult { public global::System.Collections.Generic.IReadOnlyList? Search { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Starship : ISearchHero_Search { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Human : ISearchHero_Search { public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHero_Search_Droid : ISearchHero_Search { public global::System.String Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -319,7 +329,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroQueryDocument : global::StrawberryShake.IDocument { private SearchHeroQueryDocument() @@ -340,6 +350,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -365,7 +376,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroQuery : global::Foo.Bar.ISearchHeroQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -403,6 +414,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the SearchHero GraphQL operation /// @@ -428,17 +440,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISearchHeroQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.ISearchHeroQuery _searchHero; @@ -451,10 +464,11 @@ namespace Foo.Bar public global::Foo.Bar.ISearchHeroQuery SearchHero => _searchHero; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.ISearchHeroQuery SearchHero { get; } @@ -463,11 +477,13 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class StarshipEntity { } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class HumanEntity { @@ -479,6 +495,7 @@ namespace Foo.Bar.State public global::System.String Name { get; } } + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class DroidEntity { @@ -490,7 +507,8 @@ namespace Foo.Bar.State public global::System.String Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -568,7 +586,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -590,7 +609,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHeroBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -715,7 +735,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_StarshipFromStarshipEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -735,7 +756,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_HumanFromHumanEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -755,7 +777,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SearchHero_Search_DroidFromDroidEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -775,7 +798,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -853,7 +877,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -864,7 +889,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Subscription_With_Default_Names.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Subscription_With_Default_Names.snap index 0eda8251757..71cafcc8506 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Subscription_With_Default_Names.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.CSharp.Tests/__snapshots__/StarWarsGeneratorTests.Subscription_With_Default_Names.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResult : global::System.IEquatable, IOnReviewSubResult { public OnReviewSubResult(global::Foo.Bar.IOnReviewSub_OnReview onReview) @@ -77,7 +78,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSub_OnReview_Review : global::System.IEquatable, IOnReviewSub_OnReview_Review { public OnReviewSub_OnReview_Review(global::System.Int32 stars, global::System.String? commentary) @@ -146,13 +148,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubResult { public global::Foo.Bar.IOnReviewSub_OnReview OnReview { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSub_OnReview { public global::System.Int32 Stars { get; } @@ -160,11 +164,13 @@ namespace Foo.Bar public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSub_OnReview_Review : IOnReviewSub_OnReview { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -177,7 +183,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubSubscriptionDocument : global::StrawberryShake.IDocument { private OnReviewSubSubscriptionDocument() @@ -198,6 +204,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -210,7 +217,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubSubscription : global::Foo.Bar.IOnReviewSubSubscription { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -242,6 +249,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the OnReviewSub GraphQL operation /// @@ -254,16 +262,17 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IOnReviewSubSubscription : global::StrawberryShake.IOperationRequestFactory { global::System.IObservable> Watch(global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IOnReviewSubSubscription _onReviewSub; @@ -276,10 +285,11 @@ namespace Foo.Bar public global::Foo.Bar.IOnReviewSubSubscription OnReviewSub => _onReviewSub; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IOnReviewSubSubscription OnReviewSub { get; } @@ -288,7 +298,8 @@ namespace Foo.Bar namespace Foo.Bar.State { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -334,7 +345,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -356,7 +368,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class OnReviewSubBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -437,6 +450,7 @@ namespace Foo.Bar.State } } + // StrawberryShake.CodeGeneration.CSharp.Generators.DataTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class ReviewData { @@ -454,7 +468,8 @@ namespace Foo.Bar.State public global::System.String? Commentary { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -475,7 +490,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -486,7 +502,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) diff --git a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/__snapshots__/RazorGeneratorTests.Query_And_Mutation.snap b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/__snapshots__/RazorGeneratorTests.Query_And_Mutation.snap index c6fbfa92cc6..9e5d6770a28 100644 --- a/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/__snapshots__/RazorGeneratorTests.Query_And_Mutation.snap +++ b/src/StrawberryShake/CodeGeneration/test/CodeGeneration.Razor.Tests/__snapshots__/RazorGeneratorTests.Query_And_Mutation.snap @@ -16,7 +16,8 @@ namespace Foo.Bar { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBarsResult : global::System.IEquatable, IGetBarsResult { public GetBarsResult(global::System.Collections.Generic.IReadOnlyList? bars) @@ -87,7 +88,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBars_Bars_Bar : global::System.IEquatable, IGetBars_Bars_Bar { public GetBars_Bars_Bar(global::System.String id, global::System.String? name) @@ -156,13 +158,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBarsResult { public global::System.Collections.Generic.IReadOnlyList? Bars { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBars_Bars { public global::System.String Id { get; } @@ -170,12 +174,14 @@ namespace Foo.Bar public global::System.String? Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBars_Bars_Bar : IGetBars_Bars { } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SaveBarsResult : global::System.IEquatable, ISaveBarsResult { public SaveBarsResult(global::Foo.Bar.ISaveBars_SaveBar? saveBar) @@ -240,7 +246,8 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultTypeGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SaveBars_SaveBar_Bar : global::System.IEquatable, ISaveBars_SaveBar_Bar { public SaveBars_SaveBar_Bar(global::System.String id, global::System.String? name) @@ -309,13 +316,15 @@ namespace Foo.Bar } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISaveBarsResult { public global::Foo.Bar.ISaveBars_SaveBar? SaveBar { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISaveBars_SaveBar { public global::System.String Id { get; } @@ -323,11 +332,13 @@ namespace Foo.Bar public global::System.String? Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInterfaceGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISaveBars_SaveBar_Bar : ISaveBars_SaveBar { } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the GetBars GraphQL operation /// @@ -343,7 +354,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBarsQueryDocument : global::StrawberryShake.IDocument { private GetBarsQueryDocument() @@ -364,6 +375,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the GetBars GraphQL operation /// @@ -379,7 +391,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBarsQuery : global::Foo.Bar.IGetBarsQuery { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -444,6 +456,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the GetBars GraphQL operation /// @@ -459,13 +472,14 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IGetBarsQuery : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.String a, global::System.String? b, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.String a, global::System.String? b, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationDocumentGenerator /// /// Represents the operation service of the SaveBars GraphQL operation /// @@ -481,7 +495,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SaveBarsMutationDocument : global::StrawberryShake.IDocument { private SaveBarsMutationDocument() @@ -502,6 +516,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceGenerator /// /// Represents the operation service of the SaveBars GraphQL operation /// @@ -517,7 +532,7 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SaveBarsMutation : global::Foo.Bar.ISaveBarsMutation { private readonly global::StrawberryShake.IOperationExecutor _operationExecutor; @@ -582,6 +597,7 @@ namespace Foo.Bar } } + // StrawberryShake.CodeGeneration.CSharp.Generators.OperationServiceInterfaceGenerator /// /// Represents the operation service of the SaveBars GraphQL operation /// @@ -597,17 +613,18 @@ namespace Foo.Bar /// } /// /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface ISaveBarsMutation : global::StrawberryShake.IOperationRequestFactory { global::System.Threading.Tasks.Task> ExecuteAsync(global::System.String a, global::System.String? b, global::System.Threading.CancellationToken cancellationToken = default); global::System.IObservable> Watch(global::System.String a, global::System.String? b, global::StrawberryShake.ExecutionStrategy? strategy = null); } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClient : global::Foo.Bar.IFooClient { private readonly global::Foo.Bar.IGetBarsQuery _getBars; @@ -623,10 +640,11 @@ namespace Foo.Bar public global::Foo.Bar.ISaveBarsMutation SaveBars => _saveBars; } + // StrawberryShake.CodeGeneration.CSharp.Generators.ClientInterfaceGenerator /// /// Represents the FooClient GraphQL client /// - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial interface IFooClient { global::Foo.Bar.IGetBarsQuery GetBars { get; } @@ -637,6 +655,7 @@ namespace Foo.Bar namespace Foo.Bar.State { + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityTypeGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class BarEntity { @@ -651,7 +670,8 @@ namespace Foo.Bar.State public global::System.String? Name { get; } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBarsResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -715,7 +735,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBarsResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -737,7 +758,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultDataFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SaveBarsResultFactory : global::StrawberryShake.IOperationResultDataFactory { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -785,7 +807,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultInfoGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SaveBarsResultInfo : global::StrawberryShake.IOperationResultDataInfo { private readonly global::System.Collections.Generic.IReadOnlyCollection _entityIds; @@ -807,7 +830,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBarsBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -919,7 +943,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.JsonResultBuilderGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SaveBarsBuilder : global::StrawberryShake.OperationResultBuilder { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1010,7 +1035,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class GetBars_Bars_BarFromBarEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1030,7 +1056,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.ResultFromEntityTypeMapperGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class SaveBars_SaveBar_BarFromBarEntityMapper : global::StrawberryShake.IEntityMapper { private readonly global::StrawberryShake.IEntityStore _entityStore; @@ -1050,7 +1077,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.EntityIdFactoryGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientEntityIdFactory : global::StrawberryShake.IEntityIdSerializer { private static readonly global::System.Text.Json.JsonWriterOptions _options = new global::System.Text.Json.JsonWriterOptions() @@ -1090,7 +1118,8 @@ namespace Foo.Bar.State } } - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.StoreAccessorGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public partial class FooClientStoreAccessor : global::StrawberryShake.StoreAccessor { public FooClientStoreAccessor(global::StrawberryShake.IOperationStore operationStore, global::StrawberryShake.IEntityStore entityStore, global::StrawberryShake.IEntityIdSerializer entityIdSerializer, global::System.Collections.Generic.IEnumerable requestFactories, global::System.Collections.Generic.IEnumerable resultDataFactories) : base(operationStore, entityStore, entityIdSerializer, requestFactories, resultDataFactories) @@ -1101,7 +1130,8 @@ namespace Foo.Bar.State namespace Microsoft.Extensions.DependencyInjection { - [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] + // StrawberryShake.CodeGeneration.CSharp.Generators.DependencyInjectionGenerator + [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "11.0.0")] public static partial class FooClientServiceCollectionExtensions { public static global::StrawberryShake.IClientBuilder AddFooClient(this global::Microsoft.Extensions.DependencyInjection.IServiceCollection services, global::StrawberryShake.ExecutionStrategy strategy = global::StrawberryShake.ExecutionStrategy.NetworkOnly) @@ -1202,6 +1232,7 @@ namespace Microsoft.Extensions.DependencyInjection namespace Foo.Bar.Components { + // StrawberryShake.CodeGeneration.CSharp.Generators.RazorQueryGenerator [global::System.CodeDom.Compiler.GeneratedCode("StrawberryShake", "0.0.0.0")] public partial class UseGetBars : global::StrawberryShake.Razor.UseQuery {