/// <summary> /// Constructs a new StudentQuickPollNetworkService /// </summary> /// <param name="sender">The message queue to post messages to</param> /// <param name="presentation">The PresentationModel to create this class from</param> /// <param name="poll">The QuickPollModel to create this class from</param> public StudentQuickPollNetworkService( SendingQueue sender, PresentationModel presentation ) { this.m_Sender = sender; this.m_Presentation = presentation; using( Synchronizer.Lock( this.m_Presentation.SyncRoot ) ) { this.m_QuickPoll = this.m_Presentation.QuickPoll; } if( this.m_QuickPoll != null ) { this.m_QuickPollResultCollectionHelper = new QuickPollResultCollectionHelper( this ); } }
public QuickPollNetworkService(SendingQueue sender, PresentationModel presentation) { this.m_Sender = sender; this.m_Presentation = presentation; using (Synchronizer.Lock(this.m_Presentation.SyncRoot)) { this.m_QuickPoll = this.m_Presentation.QuickPoll; } if (this.m_QuickPoll != null) { this.m_QuickPollResultCollectionHelper = new QuickPollResultCollectionHelper(this); } }