Exemple #1
0
 /// <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);
 }
 /// <summary>
 /// Initializes this instance.
 /// </summary>
 internal void Initialize()
 {
     try
     {
         InitializeCommunication();
         State = new AssociationStateDisabled(this);
     }
     catch (Exception)
     {
         State = new AssociationStateError(this);
     }
 }
Exemple #3
0
 /// <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);
     }
 }