コード例 #1
0
ファイル: Association.cs プロジェクト: yuriik83/OPC-UA-OOI
 /// <summary>
 /// Initializes a new instance of the <see cref="Association" /> class.
 /// The class captures all bindings between the message content and local resources.
 /// </summary>
 /// <param name="data">The UA Semantic Data triple representation. It id not used by current implementation.</param>
 /// <param name="aliasName">A readable alias name for this instance to be used on User Interface.
 /// Depending on the implementation this name is used to filter packets against the destination.</param>
 /// <exception cref="NullReferenceException">data argument must not be null
 /// or
 /// aliasName argument must not be null</exception>
 /// <exception cref="System.ArgumentOutOfRangeException">data argument must not be null
 /// or
 /// aliasName argument must not be null</exception>
 /// <remarks>The DataSet has the following identifiers <see cref="Association.DataDescriptor" />
 internal Association(ISemanticData data, string aliasName)
 {
     if (data == null)
     throw new NullReferenceException("data argument must not be null");
       DataDescriptor = data;
       if (String.IsNullOrEmpty(aliasName))
     throw new NullReferenceException("aliasName argument must not be null");
       m_AliasName = aliasName;
       p_State = new AssociationStateNoConfiguration(this);
 }
コード例 #2
0
 /// <summary>
 /// Initializes this instance.
 /// </summary>
 internal void Initialize()
 {
     try
     {
         InitializeCommunication();
         State = new AssociationStateDisabled(this);
     }
     catch (Exception)
     {
         State = new AssociationStateError(this);
     }
 }
コード例 #3
0
ファイル: Association.cs プロジェクト: Drutol/OPC-UA-OOI
 /// <summary>
 /// Initializes this instance.
 /// </summary>
 internal void Initialize()
 {
     try
     {
         InitializeCommunication();
         State = new AssociationStateDisabled(this);
     }
     catch (Exception _ex)
     {
         Diagnostics.ReactiveNetworkingEventSource.Log.LogException(nameof(Association), nameof(Initialize), _ex);
         State = new AssociationStateError(this);
     }
 }