Source/NFX/DataAccess/CRUD/Subscriptions/Mailbox.cs
/// <summary>
/// Delivers data to the mailbox. This method is called by subscription
/// </summary>
Delivers data to the mailbox. This method is called by subscription
Delivers data to the mailbox . This method is called by subscription
public bool Deliver(Subscription subscription, CRUDSubscriptionEvent data)
      {
        if (subscription.Store!=this.Store) return false;
        var cap = m_BufferCapacity;
        if (cap>0)
          lock(m_Buffer)
          {
            m_Buffer.AddLast(data);
            if (m_Buffer.Count>cap)
              m_Buffer.RemoveFirst();
          }
        OnReceipt(subscription, data, null);
        return true;
      }
public bool Deliver ( Subscription subscription , CRUDSubscriptionEvent data ) { if ( subscription . Store != this . Store ) return false ; var cap = m_BufferCapacity ; if ( cap > 0 ) lock ( m_Buffer ) { m_Buffer . AddLast ( data ) ; if ( m_Buffer . Count > cap ) m_Buffer . RemoveFirst ( ) ; } OnReceipt ( subscription , data , null ) ; return true ; }
Delivers data to the mailbox.
Delivers data to the mailbox .
subscription
Subscription
data
CRUDSubscriptionEvent