Disco.Services.Documents.ManagedGroups.DocumentTemplateDevicesManagedGroup.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 deviceAccountId;
            if (DeviceContainsAttachment(e.Database, attachment.DeviceSerialNumber, out deviceAccountId))
                AddMember(attachment.DeviceSerialNumber, (database) => new string[] { deviceAccountId });
        }
        private void ProcessDeviceAttachmentRemoveEvent(Tuple<DiscoDataContext, int, string, string> e)