本文整理汇总了C#中SendingQueue类的典型用法代码示例。如果您正苦于以下问题:C# SendingQueue类的具体用法?C# SendingQueue怎么用?C# SendingQueue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SendingQueue类属于命名空间,在下文中一共展示了SendingQueue类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: DeckNetworkService
public DeckNetworkService(SendingQueue sender, PresentationModel presentation, DeckModel deck)
{
this.m_Sender = sender;
this.m_Presentation = presentation;
this.m_Deck = deck;
this.m_SlideRemovedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_Sender, new PropertyEventHandler(this.HandleSlideRemoved));
this.m_SlideAddedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_Sender, new PropertyEventHandler(this.HandleSlideAdded));
this.m_SlideContentAddedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_Sender, new PropertyEventHandler(this.HandleSlideContentAdded));
this.m_DeckBackgroundColorChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_Sender, new PropertyEventHandler(this.HandleDeckBackgroundColorChanged));
this.m_SlideNetworkServices = new Hashtable();
this.m_TableOfContentsNetworkService = new TableOfContentsNetworkService(this.m_Sender, this.m_Presentation, this.m_Deck);
// Lock the deck so no content can be added between registering the event listeners and calling SendAllSlidesAndContent().
using( Synchronizer.Lock(this.m_Presentation.SyncRoot) ) {
using(Synchronizer.Lock(deck.SyncRoot)) {
this.m_Deck.SlideRemoved += this.m_SlideRemovedDispatcher.Dispatcher;
this.m_Deck.SlideAdded += this.m_SlideAddedDispatcher.Dispatcher;
this.m_Deck.SlideContentAdded += this.m_SlideContentAddedDispatcher.Dispatcher;
this.m_Deck.Changed["DeckBackgroundColor"].Add(this.m_DeckBackgroundColorChangedDispatcher.Dispatcher);
this.SendAllSlidesAndContent(Group.AllParticipant);
}
}
}
开发者ID:kevinbrink,项目名称:CP3_Enhancement,代码行数:28,代码来源:DeckNetworkService.cs
示例2: SSDeckTraversalNetworkService
public SSDeckTraversalNetworkService(SendingQueue sender, PresentationModel presentation, DeckTraversalModel traversal)
{
this.m_Sender = sender;
this.m_Presentation = presentation;
this.m_DeckTraversal = traversal;
this.m_SSDeckNetworkService = new SSDeckNetworkService(this.m_Sender, this.m_Presentation, this.m_DeckTraversal.Deck);
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:8,代码来源:SSDeckTraversalNetworkService.cs
示例3: TableOfContentsNetworkService
public TableOfContentsNetworkService(SendingQueue sender, PresentationModel presentation, DeckModel deck)
{
this.m_Sender = sender;
this.m_Presentation = presentation;
this.m_Deck = deck;
this.m_EntriesCollectionHelper = new EntriesCollectionHelper(this);
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:8,代码来源:TableOfContentsNetworkService.cs
示例4: TextSheetNetworkService
public TextSheetNetworkService(SendingQueue sender, PresentationModel presentation, DeckModel deck, SlideModel slide, TextSheetModel sheet, SheetMessage.SheetCollection selector)
: base(sender, presentation, deck, slide, sheet, selector)
{
this.sheet_ = sheet;
this.sheet_.Changed["Text"].Add(new PropertyEventHandler(this.SendText));
this.sheet_.Changed["Color"].Add(new PropertyEventHandler(this.SendText));
this.sheet_.Changed["IsPublic"].Add(new PropertyEventHandler(this.SendPublic));
}
开发者ID:kevinbrink,项目名称:CP3_Enhancement,代码行数:9,代码来源:TextSheetNetworkService.cs
示例5: SSSheetNetworkService
public SSSheetNetworkService(SendingQueue sender, PresentationModel presentation, DeckModel deck, SlideModel slide, SheetModel sheet, SheetMessage.SheetCollection selector)
{
this.m_Sender = sender;
this.m_Presentation = presentation;
this.m_Deck = deck;
this.m_Slide = slide;
this.m_Sheet = sheet;
this.m_Selector = selector;
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:9,代码来源:SSSheetNetworkService.cs
示例6: StudentPresentationNetworkService
/// <summary>
/// Construct a StudentPresentationNetworkService
/// </summary>
/// <param name="sender">The event queue to use</param>
/// <param name="presentation">The PresentationModel to listen for changes to</param>
public StudentPresentationNetworkService( SendingQueue sender, PresentationModel presentation )
{
this.m_Sender = sender;
this.m_Presentation = presentation;
this.m_StudentQuickPollNetworkService = new StudentQuickPollNetworkService( this.m_Sender, this.m_Presentation );
this.m_StudentQuickPollChangedDispatcher = new EventQueue.PropertyEventDispatcher( this.m_Sender, new PropertyEventHandler( this.HandleStudentQuickPollChanged ) );
this.m_Presentation.Changed["QuickPoll"].Add( this.m_StudentQuickPollChangedDispatcher.Dispatcher );
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:15,代码来源:StudentPresentationNetworkService.cs
示例7: SSInkSheetNetworkService
public SSInkSheetNetworkService(SendingQueue sender, PresentationModel presentation, DeckModel deck, SlideModel slide, InkSheetModel sheet, SheetMessage.SheetCollection selector)
: base(sender, presentation, deck, slide, sheet, selector)
{
this.m_Sheet = sheet;
this.m_Sheet.InkAdded += new StrokesEventHandler(this.HandleInkAdded);
this.m_Sheet.InkDeleting += new StrokesEventHandler(this.HandleInkDeleting);
this.SendExistingInk();
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:10,代码来源:SSInkSheetNetworkService.cs
示例8: QuickPollResultNetworkService
/// <summary>
/// Constructs a new QuickPollResultNetworkService
/// </summary>
/// <param name="sender">The message queue to use</param>
/// <param name="presentation">The PresentationModel to associate this service with</param>
/// <param name="poll">The QuickPollModel to associate this service with</param>
/// <param name="result">The QuickPollResultModel to associate this service with</param>
public QuickPollResultNetworkService( SendingQueue sender, PresentationModel presentation, QuickPollModel poll, QuickPollResultModel result )
{
this.m_Sender = sender;
this.m_Presentation = presentation;
this.m_QuickPoll = poll;
this.m_Result = result;
// Listen to changes tot he ResultString
this.m_ResultChangedDispatcher = new EventQueue.PropertyEventDispatcher( this.m_Sender, new PropertyEventHandler( this.HandleResultChanged ) );
this.m_Result.Changed["ResultString"].Add( this.m_ResultChangedDispatcher.Dispatcher );
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:18,代码来源:QuickPollResultNetworkService.cs
示例9: DeckTraversalNetworkService
public DeckTraversalNetworkService(SendingQueue sender, PresentationModel presentation, DeckTraversalModel traversal)
{
this.m_Sender = sender;
this.m_Presentation = presentation;
this.m_DeckTraversal = traversal;
this.m_DeckNetworkService = new DeckNetworkService(this.m_Sender, this.m_Presentation, this.m_DeckTraversal.Deck);
this.m_CurrentChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_Sender, new PropertyEventHandler(this.HandleCurrentChanged));
this.m_DeckTraversal.Changed["Current"].Add(this.m_CurrentChangedDispatcher.Dispatcher);
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:11,代码来源:DeckTraversalNetworkService.cs
示例10: SendAsync
protected override void SendAsync(SendingQueue queue)
{
var e = new SocketAsyncEventArgs();
e.Completed += new EventHandler<SocketAsyncEventArgs>(SendingCompleted);
e.RemoteEndPoint = RemoteEndPoint;
e.UserToken = queue;
var item = queue[queue.Position];
e.SetBuffer(item.Array, item.Offset, item.Count);
m_ServerSocket.SendToAsync(e);
}
开发者ID:Johnses,项目名称:SuperSocket,代码行数:12,代码来源:UdpSocketSession.cs
示例11: SSSlideNetworkService
public SSSlideNetworkService(SendingQueue sender, PresentationModel presentation, DeckModel deck, SlideModel slide)
{
this.m_Sender = sender;
this.m_Presentation = presentation;
this.m_Deck = deck;
this.m_Slide = slide;
this.m_SubmissionStyleChangeDispatcher = new EventQueue.PropertyEventDispatcher( this.m_Sender, new PropertyEventHandler( this.HandleChange ) );
this.m_Slide.Changed["SubmissionStyle"].Add( this.m_SubmissionStyleChangeDispatcher.Dispatcher );
this.m_AnnotationSheetsCollectionHelper = new SSSheetsCollectionHelper(this, "AnnotationSheets", SheetMessage.SheetCollection.AnnotationSheets);
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:12,代码来源:SSSlideNetworkService.cs
示例12: SheetNetworkService
public SheetNetworkService(SendingQueue sender, PresentationModel presentation, DeckModel deck, SlideModel slide, SheetModel sheet, SheetMessage.SheetCollection selector)
{
this.m_Sender = sender;
this.m_Presentation = presentation;
this.m_Deck = deck;
this.m_Slide = slide;
this.m_Sheet = sheet;
this.m_Selector = selector;
this.m_BoundsChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.Sender, new PropertyEventHandler(this.HandleBoundsChanged));
this.m_Sheet.Changed["Bounds"].Add(this.m_BoundsChangedDispatcher.Dispatcher);
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:12,代码来源:SheetNetworkService.cs
示例13: PresentationNetworkService
public PresentationNetworkService(SendingQueue sender, PresentationModel presentation)
{
this.m_Sender = sender;
this.m_Presentation = presentation;
this.m_DeckTraversalsCollectionHelper = new DeckTraversalsCollectionHelper(this);
this.m_QuickPollNetworkService = new QuickPollNetworkService( this.m_Sender, this.m_Presentation );
this.m_QuickPollChangedDispatcher = new EventQueue.PropertyEventDispatcher( this.m_Sender, new PropertyEventHandler( this.HandleQuickPollChanged ) );
this.m_Presentation.Changed["QuickPoll"].Add( this.m_QuickPollChangedDispatcher.Dispatcher );
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:12,代码来源:PresentationNetworkService.cs
示例14: SendAsync
protected override void SendAsync(SendingQueue queue)
{
var e = m_SocketEventArgSend;
e.RemoteEndPoint = RemoteEndPoint;
e.UserToken = queue;
var item = queue[queue.Position];
e.SetBuffer(item.Array, item.Offset, item.Count);
if (!m_ServerSocket.SendToAsync(e))
OnSendingCompleted(this, e);
}
开发者ID:huodianyan,项目名称:SuperSocket,代码行数:12,代码来源:UdpSocketSession.cs
示例15: ParticipantNetworkService
public ParticipantNetworkService(SendingQueue sender, PresenterModel model, ParticipantModel participant)
{
this.m_Sender = sender;
this.m_Model = model;
this.m_Participant = participant;
this.m_RoleChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_Sender, new PropertyEventHandler(this.HandleRoleChanged));
this.m_Participant.Changed["Role"].Add(this.m_RoleChangedDispatcher.Dispatcher);
this.m_RoleChangedDispatcher.Dispatcher(this, null);
this.m_GroupCollectionHelper = new GroupCollectionHelper(this);
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:12,代码来源:ParticipantNetworkService.cs
示例16: StudentQuickPollNetworkService
/// <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 );
}
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:18,代码来源:StudentQuickPollNetworkService.cs
示例17: SubmissionStatusNetworkService
public SubmissionStatusNetworkService(SendingQueue sender, RoleModel role)
{
submission_status_model_ = SubmissionStatusModel.GetInstance();
if (role is StudentModel) {
submission_status_model_.Role = "student";
submission_status_model_.Changed["SubmissionStatus"].Add(new PropertyEventHandler(this.StudentSendStatus));
} else if(role is InstructorModel){
submission_status_model_.Role = "instructor";
submission_status_model_.Changed["Id"].Add(new PropertyEventHandler(this.InstructorSendStatus));
}
sender_ = sender;
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:14,代码来源:SubmissionStatusNetworkService.cs
示例18: InkSheetNetworkService
public InkSheetNetworkService(SendingQueue sender, PresentationModel presentation, DeckModel deck, SlideModel slide, InkSheetModel sheet, SheetMessage.SheetCollection selector)
: base(sender, presentation, deck, slide, sheet, selector)
{
this.m_Sheet = sheet;
using (Synchronizer.Lock(slide.SyncRoot)) {
m_SlideID = slide.Id;
}
this.m_Sheet.InkAdded += new StrokesEventHandler(this.HandleInkAdded);
this.m_Sheet.InkDeleting += new StrokesEventHandler(this.HandleInkDeleting);
Group receivers = Group.AllParticipant;
if( (deck.Disposition & (DeckDisposition.StudentSubmission | DeckDisposition.QuickPoll)) != 0 ) {
receivers = Group.Submissions;
}
this.SendExistingInk(receivers);
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:18,代码来源:InkSheetNetworkService.cs
示例19: RealTimeInkSheetNetworkService
public RealTimeInkSheetNetworkService(SendingQueue sender, PresentationModel presentation, DeckModel deck, SlideModel slide, RealTimeInkSheetModel sheet, SheetMessage.SheetCollection selector)
: base(sender, presentation, deck, slide, sheet, selector)
{
this.m_Sheet = sheet;
using (Synchronizer.Lock(slide.SyncRoot)) {
m_SlideID = slide.Id;
}
this.PacketBuffers = new Dictionary<int, List<int>>();
this.PacketFlushTimes = new Dictionary<int, long>();
this.m_CurrentDrawingAttributesChangedDispatcher = new EventQueue.PropertyEventDispatcher(this.Sender, new PropertyEventHandler(this.HandleCurrentDrawingAttributesChanged));
this.m_Sheet.Changed["CurrentDrawingAttributes"].Add(this.m_CurrentDrawingAttributesChangedDispatcher.Dispatcher);
this.m_Sheet.StylusUp += new RealTimeInkSheetModel.StylusUpEventHandler(this.HandleStylusUp);
this.m_Sheet.Packets += new RealTimeInkSheetModel.PacketsEventHandler(this.HandlePackets);
this.m_Sheet.StylusDown += new RealTimeInkSheetModel.StylusDownEventHandler(this.HandleStylusDown);
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:18,代码来源:RealTimeInkSheetNetworkService.cs
示例20: SSDeckNetworkService
public SSDeckNetworkService(SendingQueue sender, PresentationModel presentation, DeckModel deck)
{
this.m_Sender = sender;
this.m_Presentation = presentation;
this.m_Deck = deck;
this.m_SlideRemovedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_Sender, new PropertyEventHandler(this.HandleSlideRemoved));
this.m_SlideAddedDispatcher = new EventQueue.PropertyEventDispatcher(this.m_Sender, new PropertyEventHandler(this.HandleSlideAdded));
this.m_SlideNetworkServices = new Hashtable();
// Lock the deck so no content can be added between registering the event listeners and calling SendAllSlidesAndContent().
using( Synchronizer.Lock(this.m_Presentation.SyncRoot) ) {
using(Synchronizer.Lock(deck.SyncRoot)) {
this.m_Deck.SlideRemoved += this.m_SlideRemovedDispatcher.Dispatcher;
this.m_Deck.SlideAdded += this.m_SlideAddedDispatcher.Dispatcher;
this.AttachAllSlides();
}
}
}
开发者ID:ClassroomPresenter,项目名称:CP3,代码行数:21,代码来源:SSDeckNetworkService.cs
注:本文中的SendingQueue类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论