Skip to content

Commit 487912c

Browse files
Merge pull request #222 from larws/issue/221-eventnotifier-attribute-missing
Issue 221: Update model design when event notifier attribute is set
2 parents 6f30718 + 6cb8c69 commit 487912c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Opc.Ua.ModelCompiler/NodeSetToModelDesign.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,7 @@ private void UpdateObjectDesign(NodeSet.UAObject input, ObjectDesign output)
925925
UpdateInstanceDesign(input, output);
926926

927927
output.SupportsEvents = (input.EventNotifier & EventNotifiers.SubscribeToEvents) != 0;
928+
output.SupportsEventsSpecified = true;
928929
}
929930

930931
private void UpdateViewDesign(NodeSet.UAView input, ViewDesign output)
@@ -1545,7 +1546,7 @@ private Permissions[] ToPermissions(PermissionType input)
15451546

15461547
return permissions.ToArray();
15471548
}
1548-
1549+
15491550
private RolePermissionSet ToPermissionSet(NodeSet.UANode node, NodeSet.RolePermission[] input)
15501551
{
15511552
if (input == null)
@@ -1673,7 +1674,7 @@ private XmlQualifiedName BuildSymbolicId(UANode node)
16731674
/// Imports a node from the set.
16741675
/// </summary>
16751676
public ModelDesign Import(string prefix, string name)
1676-
{
1677+
{
16771678
ModelDesign dictionary = new ModelDesign();
16781679

16791680
if (m_nodeset.Models == null || m_nodeset.Models.Length == 0)

0 commit comments

Comments
 (0)