protected override DeleteStudyContext CreatePluginProcessingContext() { DeleteStudyContext context = base.CreatePluginProcessingContext(); context.UserId = _userId; context.UserName = _userName; return context; }
public void Initialize(DeleteStudyContext context) { Platform.CheckForNullReference(context, "context"); _context = context; _enabled = context.ServerPartition.AuditDeleteStudy; }
protected virtual DeleteStudyContext CreatePluginProcessingContext() { DeleteStudyContext context = new DeleteStudyContext(); context.WorkQueueItem = WorkQueueItem; context.ServerPartition = ServerPartition; context.Study = Study; context.StorageLocation = StorageLocation; context.Filesystem = FilesystemMonitor.Instance.GetFilesystemInfo(StorageLocation.FilesystemKey); return context; }