public FileCommentsCollectionManager(int file, int fileVersion)
 {
     _scheduler = TaskScheduler.FromCurrentSynchronizationContext();
     _managedRootCommentsCollection = new ObservableCollection<CommentViewModel>();
     _fileId = file;
     _fileVersion = fileVersion;
     _workshareOnline = WorkshareOnline.Instance;
 }
        public PlatformNotificationListener(IPlatformSession session, IPlatformUser user, IWorkshareOnline workshare)
            : base(session, user)
        {            
            Contract.Requires(session != null);
            Contract.Requires(user != null);
            this.Events = workshare.Events;

        }
        public PlatformUsersOnlineMonitor(IWorkshareOnline workshare)
        {
            _events = workshare.Events;

            _events.GetEvent<UserVisitEvent>().Subscribe(OnUserVisit, ThreadOption.BackgroundThread, false);
            _events.GetEvent<FileCommentAddedEvent>().Subscribe(OnUserComment, ThreadOption.BackgroundThread, false);
            _events.GetEvent<FileCommentEditedEvent>().Subscribe(OnUserComment, ThreadOption.BackgroundThread, false);
            _events.GetEvent<FileCommentRemovedEvent>().Subscribe(OnUserComment, ThreadOption.BackgroundThread, false);

            timer = new Timer(_offlineTimeout.TotalMilliseconds);
            timer.Elapsed+=timer_Elapsed;
            timer.Start();
        }
示例#4
0
 public UserOnlineMonitor(string userUuid)
 {
     this._userUuid = userUuid;
     _workshareOnline = WorkshareOnline.Instance;
 }