forked from OPCFoundation/UA-EdgeTranslator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUAServer.cs
35 lines (30 loc) · 1.11 KB
/
UAServer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
namespace Opc.Ua.Edge.Translator
{
using Opc.Ua;
using Opc.Ua.Server;
using System.Collections.Generic;
public partial class UAServer : StandardServer
{
protected override MasterNodeManager CreateMasterNodeManager(IServerInternal server, ApplicationConfiguration configuration)
{
List<INodeManager> nodeManagers = new List<INodeManager>
{
new UANodeManager(server, configuration)
};
return new MasterNodeManager(server, configuration, null, nodeManagers.ToArray());
}
protected override ServerProperties LoadServerProperties()
{
ServerProperties properties = new ServerProperties
{
ManufacturerName = "Web of Things",
ProductName = "UA Edge Translator",
ProductUri = "",
SoftwareVersion = Utils.GetAssemblySoftwareVersion(),
BuildNumber = Utils.GetAssemblyBuildNumber(),
BuildDate = Utils.GetAssemblyTimestamp()
};
return properties;
}
}
}