Пример #1
0
 /// <summary>
 /// Ctor of the action configuration model.
 /// </summary>
 public OpcActionConfigurationModel(ReadActionModel action, string endpointUrl = null, bool useSecurity = true)
 {
     Init();
     EndpointUrl = new Uri(endpointUrl ?? DefaultEndpointUrl);
     UseSecurity = useSecurity;
     Read.Add(new ReadActionModel(action));
 }
Пример #2
0
 /// <summary>
 /// Ctor of a read action model.
 /// </summary>
 public ReadActionModel(ReadActionModel action)
 {
     Id       = action.Id;
     Interval = action.Interval;
 }
Пример #3
0
 /// <summary>
 /// Ctor for the read action.
 /// </summary>
 public OpcReadAction(Uri endpointUrl, ReadActionModel action) : base(endpointUrl, action.Id, action.Interval)
 {
 }