public OverlayReference GetOverlayReference() { _sequenceNumber++; var overlayReference = new OverlayReference(_sequenceNumber); _overlayReferences.Add(overlayReference); return(overlayReference); }
public OverlayReference Attach(RenderFragment overlayContent, OverlayConfig overlayConfig) { _sequenceNumber++; var overlayReference = new OverlayReference(_sequenceNumber); _overlayReferences.Add(overlayReference); overlayConfig.OverlayRef = overlayReference.OverlayReferenceId; OnAttach?.Invoke(overlayContent, overlayConfig); return(overlayReference); }