/// <summary> /// Stores the list of surveyed surfaces for a site model /// </summary> private void Store(Guid siteModelUid, ISurveyedSurfaces surveyedSurfaces) { using var stream = surveyedSurfaces.ToStream(); if (_writeStorageProxy.WriteStreamToPersistentStore(siteModelUid, SURVEYED_SURFACE_STREAM_NAME, FileSystemStreamType.SurveyedSurfaces, stream, this) == FileSystemErrorStatus.OK) { _writeStorageProxy.Commit(); } // Notify the grid listeners that attributes of this site model have changed. var sender = DIContext.Obtain <ISiteModelAttributesChangedEventSender>(); sender.ModelAttributesChanged(SiteModelNotificationEventGridMutability.NotifyAll, siteModelUid, surveyedSurfacesChanged: true); }