diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 31e85026..e4b8e4d3 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,6 @@ #### 1.0.0-beta034 - 29.09.2016 * Fix X-Road header serialization error when serializing required header with missing value. +* Fix X-Road protocol name not assigned bug. #### 1.0.0-beta033 - 29.09.2016 * Improved customization support for X-Road message headers. diff --git a/src/XRoadLib/XRoadProtocol.cs b/src/XRoadLib/XRoadProtocol.cs index 1ac4969e..f1271da6 100644 --- a/src/XRoadLib/XRoadProtocol.cs +++ b/src/XRoadLib/XRoadProtocol.cs @@ -96,6 +96,8 @@ public XRoadProtocol(string name, ISchemaExporter schemaExporter) if (schemaExporter == null) throw new ArgumentNullException(nameof(schemaExporter)); + Name = name; + schemaDefinitionProvider = new SchemaDefinitionProvider(schemaExporter); HeaderDefinition = schemaDefinitionProvider.GetXRoadHeaderDefinition();