Opc.Ua.Sample.SampleServer.CreateMasterNodeManager C# (CSharp) Method

CreateMasterNodeManager() protected method

Creates the node managers for the server.
This method allows the sub-class create any additional node managers which it uses. The SDK always creates a CoreNodeManager which handles the built-in nodes defined by the specification. Any additional NodeManagers are expected to handle application specific nodes. Applications with small address spaces do not need to create their own NodeManagers and can add any application specific nodes to the CoreNodeManager. Applications should use custom NodeManagers when the structure of the address space is stored in another system or when the address space is too large to keep in memory.
protected CreateMasterNodeManager ( IServerInternal server, ApplicationConfiguration configuration ) : MasterNodeManager
server IServerInternal
configuration ApplicationConfiguration
return Opc.Ua.Server.MasterNodeManager
        protected override MasterNodeManager CreateMasterNodeManager(IServerInternal server, ApplicationConfiguration configuration)
        {
            Console.WriteLine("Creating the Node Managers.");

            List<INodeManager> nodeManagers = new List<INodeManager>();

            // create the custom node managers.
            nodeManagers.Add(new global::TestData.TestDataNodeManager(server, configuration));            
            nodeManagers.Add(new global::MemoryBuffer.MemoryBufferNodeManager(server, configuration));
            nodeManagers.Add(new global::Boiler.BoilerNodeManager(server, configuration));
            //nodeManagers.Add(new global::FileSystem.FileSystemNodeManager(server, "%LocalApplicationData%\\OPC Foundation\\Samples\\FileSystem"));
            
            // create master node manager.
            return new MasterNodeManager(server, configuration, null, nodeManagers.ToArray());
        }
        #endif