예제 #1
0
 public virtual bool CompareNotifyContext(object obj)
 {
     lock (m_syncRoot)
     {
         return(NotifyContext.Equals(obj));
     }
 }
예제 #2
0
파일: Observer.cs 프로젝트: bob2cb/puremvc
 /// <summary>
 /// Compare an object to the notification context
 /// </summary>
 /// <remarks>This method is thread safe</remarks>
 /// <param name="obj">The object to compare</param>
 /// <returns>Indicating if the object and the notification context are the same</returns>
 public virtual bool CompareNotifyContext(object obj)
 {
     lock (m_syncRoot)
     {
         // Compare on the current state
         return(NotifyContext.Equals(obj));
     }
 }
예제 #3
0
 /// <summary>
 /// Compare an object to the notification context
 /// </summary>
 /// <remarks>This method is thread safe</remarks>
 /// <param name="obj">The object to compare</param>
 /// <returns>Indicating if the object and the notification context are the same</returns>
 public bool CompareNotifyContext(object obj)
 {
     lock (this)
     {
         // Compare on the current state
         return(NotifyContext.Equals(obj));
     }
 }
예제 #4
0
 /// <summary>
 /// Compare an object to the notification context.
 /// </summary>
 /// <param name="obj">the object to compare</param>
 /// <returns>indicating if the object and the notification context are the same</returns>
 public virtual bool CompareNotifyContext(object obj)
 {
     return(NotifyContext.Equals(obj));
 }