Disco.Services.Documents.ManagedGroups.DocumentTemplateUsersManagedGroup.ProcessDeviceAttachmentAddEvent C# (CSharp) Method

ProcessDeviceAttachmentAddEvent() private method

private ProcessDeviceAttachmentAddEvent ( RepositoryMonitorEvent e ) : void
e RepositoryMonitorEvent
return void
        private void ProcessDeviceAttachmentAddEvent(RepositoryMonitorEvent e)
        {
            var attachment = (DeviceAttachment)e.Entity;

            string userId;
            if (DeviceContainsAttachment(e.Database, attachment.DeviceSerialNumber, out userId) && userId != null)
                AddMember(userId, (database) => new string[] { userId });
        }
        private void ProcessDeviceAttachmentRemoveEvent(Tuple<DiscoDataContext, int, string, string> e)