internal static DataManagementSetup CreateDevice(IMessageHandlerFactory messageHandlerFactory, Guid dataSetGuid)
        {
            AssociationConfigurationId = dataSetGuid;
            DataManagementSetup _ret = new OPCUAServerProducerSimulator();

            _ret.ConfigurationFactory  = new MyConfigurationFactory();
            _ret.BindingFactory        = new MyBindingFFactory();
            _ret.EncodingFactory       = new MyEncodingFactory();
            _ret.MessageHandlerFactory = messageHandlerFactory;
            return(_ret);
        }
        internal static OPCUAServerProducerSimulator CreateDevice(MessageHandlerFactoryFixture messageHandlerFactory, Guid dataSetGuid)
        {
            AssociationConfigurationId = dataSetGuid;
            OPCUAServerProducerSimulator _ret = new OPCUAServerProducerSimulator
            {
                ConfigurationFactory  = new MyConfigurationFactory(),
                BindingFactory        = new MyBindingFFactory(),
                EncodingFactory       = new MyEncodingFactory(),
                MessageHandlerFactory = messageHandlerFactory
            };

            return(_ret);
        }
Exemplo n.º 3
0
 internal static DataManagementSetup CreateDevice(IMessageHandlerFactory messageHandlerFactory, Guid dataSetGuid)
 {
     AssociationConfigurationId = dataSetGuid;
       DataManagementSetup _ret = new OPCUAServerProducerSimulator();
       _ret.ConfigurationFactory = new MyConfigurationFactory();
       _ret.BindingFactory = new MyBindingFFactory();
       _ret.EncodingFactory = new MyEncodingFactory();
       _ret.MessageHandlerFactory = messageHandlerFactory;
       return _ret;
 }