Ejemplo n.º 1
0
 /// <summary>
 ///         引发 <see cref="E:ValueChanged" /> 事件.
 /// </summary>
 /// <param name="e">The <see cref="ValueChangedEventArgs{T}" /> Itance containing the event data.</param>
 protected virtual void OnDataChanged(ValueEventArgs <T?> e)
 {
     e.Raise(this, ref DataChanged);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 引发<see cref="E:Opened" />事件
 /// </summary>
 /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
 protected virtual void OnValueChanged(ValueEventArgs <T> e)
 {
     e.Raise(this, ref ValueChanged);
 }
Ejemplo n.º 3
0
 /// <summary>
 ///         引发 <see cref="E:Opened" /> 事件.
 /// </summary>
 /// <param name="e">包含事件数据的实例<see cref="EventArgs" /></param>
 protected virtual void OnDecodeFinished(ValueEventArgs <T> e)
 {
     e.Raise(this, ref DecodeFinished);
 }
Ejemplo n.º 4
0
 /// <summary>
 ///         当消息成功接收时发生
 /// </summary>
 /// <param name="e">包含消息的事件参数</param>
 protected virtual void OnReceiveSuccessed(ValueEventArgs <Message> e)
 {
     e.Raise(this, ref ReceiveSuccessed);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 引发 <see cref="E:Dequeued" /> 事件.
 /// </summary>
 /// <param name="e">The <see cref="ValueEventArgs{T}" /> Itance containing the event data.</param>
 protected virtual void OnDequeued(ValueEventArgs <T> e)
 {
     e.Raise(this, ref Dequeued);
 }
Ejemplo n.º 6
0
 /// <summary>
 ///         引发启动事件。
 /// </summary>
 /// <param name="e">包含事件数据的实例<see cref="EventArgs" /></param>
 protected virtual void OnReceiveSuccessed(ValueEventArgs <T> e) => e.Raise(this, ref ReceiveSuccessed);
Ejemplo n.º 7
0
 /// <summary>
 ///         Called when [capture successed].
 /// </summary>
 /// <param name="e">The e.</param>
 protected virtual void OnCaptureSuccessed(ValueEventArgs <T> e)
 {
     //this.InfoEventRaise("采集成功");
     e.Raise(this, ref CaptureSuccessed);
 }
Ejemplo n.º 8
0
 /// <summary>
 ///         引发全局标识改变事件
 /// </summary>
 /// <param name="e">包含事件数据的<see cref="EventArgs" />实例</param>
 protected virtual void OnEffectiveChanged(ValueEventArgs <bool> e)
 {
     e.Raise(this, ref EffectiveChanged);
 }
Ejemplo n.º 9
0
 /// <summary>
 ///         引发启动事件。
 /// </summary>
 /// <param name="e">包含事件数据的实例<see cref="EventArgs" /></param>
 protected virtual void OnSendSuccessed(ValueEventArgs <T> e) => e.Raise(this, ref SendSuccessed);
Ejemplo n.º 10
0
 /// <summary>
 ///         引发<see cref="E:Opened" />事件
 /// </summary>
 /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
 protected virtual void OnAcquired(ValueEventArgs <T> e)
 {
     e.Raise(this, ref Acquired);
 }
Ejemplo n.º 11
0
 /// <summary>
 ///         引发<see cref="E:Opened" />事件
 /// </summary>
 /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
 protected virtual void OnConsumed(ValueEventArgs <T> e)
 {
     e.Raise(this, ref Consumed);
 }
Ejemplo n.º 12
0
 /// <summary>
 ///         引发<see cref="E:Opened" />事件
 /// </summary>
 /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
 protected virtual void OnDispatched(ValueEventArgs <T> e)
 {
     e.Raise(this, ref Dispatched);
 }
Ejemplo n.º 13
0
 /// <summary>
 ///         引发<see cref="E:Opened" />事件
 /// </summary>
 /// <param name="e">The <see cref="EventArgs" /> instance containing the event data.</param>
 protected virtual void OnProducted(ValueEventArgs <T> e)
 {
     e.Raise(this, ref Producted);
 }
Ejemplo n.º 14
0
 /// <summary>
 ///         引发<see cref="E:Opened" />事件
 /// </summary>
 /// <param name="e">包含事件数据的实例<see cref="EventArgs" /></param>
 protected virtual void OnStoped(ValueEventArgs <Exception> e)
 {
     e.Raise(this, ref Stoped);
 }
Ejemplo n.º 15
0
 /// <summary>
 ///         引发启动事件。
 /// </summary>
 /// <param name="e">包含事件数据的实例<see cref="EventArgs" /></param>
 protected virtual void OnRepeatFinshed(ValueEventArgs <T> e)
 {
     e.Raise(this, ref RepeatFinshed);
 }
Ejemplo n.º 16
0
 /// <summary>
 ///         引发全局标识改变事件
 /// </summary>
 /// <param name="e">包含事件数据的<see cref="EventArgs" />实例</param>
 protected virtual void OnStateChanged(ValueEventArgs <ElectronicState> e)
 {
     e.Raise(this, ref StateChanged);
 }