diff --git a/src/CloudActors.Abstractions.CodeAnalysis/CacheableModels.cs b/src/CloudActors.Abstractions.CodeAnalysis/CacheableModels.cs index 6459fe6..e179ef0 100644 --- a/src/CloudActors.Abstractions.CodeAnalysis/CacheableModels.cs +++ b/src/CloudActors.Abstractions.CodeAnalysis/CacheableModels.cs @@ -143,10 +143,6 @@ record struct EventSourcedModel( record struct OrleansConfig( bool IsCloudActorsServer, bool ProduceReferenceAssembly, - string? ImmutableAttributes, - string? AliasAttributes, - string? IdAttributes, - string? GenerateSerializerAttributes, string? GenerateFieldIds, bool GenerateCompatibilityInvokers) : IEquatable; @@ -376,10 +372,6 @@ public static OrleansConfig ExtractOrleansConfig(Microsoft.CodeAnalysis.Diagnost var produceRef = options.TryGetValue("build_property.ProduceReferenceAssembly", out var pv) && bool.TryParse(pv, out var pr) && pr; - options.TryGetValue("build_property.orleans_immutableattributes", out var immutable); - options.TryGetValue("build_property.orleans_aliasattributes", out var alias); - options.TryGetValue("build_property.orleans_idattributes", out var id); - options.TryGetValue("build_property.orleans_generateserializerattributes", out var genSerializer); options.TryGetValue("build_property.orleans_generatefieldids", out var genFieldIds); var genCompatInvokers = false; @@ -387,7 +379,7 @@ public static OrleansConfig ExtractOrleansConfig(Microsoft.CodeAnalysis.Diagnost bool.TryParse(gci, out var gciBool)) genCompatInvokers = gciBool; - return new OrleansConfig(isServer, produceRef, immutable, alias, id, genSerializer, genFieldIds, genCompatInvokers); + return new OrleansConfig(isServer, produceRef, genFieldIds, genCompatInvokers); } /// diff --git a/src/CloudActors.CodeAnalysis/OrleansGenerator.cs b/src/CloudActors.CodeAnalysis/OrleansGenerator.cs index 94206ad..c946107 100644 --- a/src/CloudActors.CodeAnalysis/OrleansGenerator.cs +++ b/src/CloudActors.CodeAnalysis/OrleansGenerator.cs @@ -91,26 +91,6 @@ public static string GenerateCode(OrleansGeneratorOptions orleans, string additi static CodeGeneratorOptions CreateGeneratorOptions(OrleansConfig config) { var options = new CodeGeneratorOptions(); - if (config.ImmutableAttributes is { Length: > 0 } immutableAttributes) - { - options.ImmutableAttributes.AddRange([.. immutableAttributes.Split([';'], StringSplitOptions.RemoveEmptyEntries)]); - } - - if (config.AliasAttributes is { Length: > 0 } aliasAttributes) - { - options.AliasAttributes.AddRange([.. aliasAttributes.Split([';'], StringSplitOptions.RemoveEmptyEntries)]); - } - - if (config.IdAttributes is { Length: > 0 } idAttributes) - { - options.IdAttributes.AddRange([.. idAttributes.Split([';'], StringSplitOptions.RemoveEmptyEntries)]); - } - - if (config.GenerateSerializerAttributes is { Length: > 0 } generateSerializerAttributes) - { - options.GenerateSerializerAttributes.AddRange([.. generateSerializerAttributes.Split([';'], StringSplitOptions.RemoveEmptyEntries)]); - } - if (config.GenerateFieldIds is { Length: > 0 } generateFieldIds) { if (Enum.TryParse(generateFieldIds, out GenerateFieldIds fieldIdOption)) diff --git a/src/Directory.props b/src/Directory.props index 1cd8d25..62ddafd 100644 --- a/src/Directory.props +++ b/src/Directory.props @@ -6,7 +6,7 @@ Devlooped.CloudActors false true - 10.0.1 + 10.1.0 \ No newline at end of file