public void CreateAnnotation(IList <string> collaboratorGuids, string connectionIdToExclude, string userGuid, string userName, string documentGuid, AnnotationType annotationType, string annotationGuid, byte access, string replyGuid, int pageNumber, Rectangle box, Point?annotationPosition, string svgPath, DrawingOptions drawingOptions, FontOptions font) { Array.ForEach( _annotationsHub.GetConnectionIdsToCall(connectionIdToExclude, collaboratorGuids), x => GetClient(x).createAnnotationOnClient(connectionIdToExclude, new { userName, pageNumber, box, annotationPosition, documentGuid, annotationGuid, access, annotationType, replyGuid, userGuid, svgPath, serverTime = GetJavascriptDateTime(DateTime.UtcNow), drawingOptions = (drawingOptions != null ? new { penColor = drawingOptions.PenColor, penWidth = drawingOptions.PenWidth, penStyle = drawingOptions.PenStyle, brushColor = drawingOptions.BrushColor } : null), font = (font != null ? new { family = font.Family, size = font.Size } : null) })); }
public void CreateAnnotation(IList<string> collaboratorGuids, string connectionIdToExclude, string userGuid, string userName, string documentGuid, AnnotationType annotationType, string annotationGuid, byte access, string replyGuid, int pageNumber, Rectangle box, Point? annotationPosition, string svgPath, DrawingOptions drawingOptions, FontOptions font) { Array.ForEach( _annotationsHub.GetConnectionIdsToCall(connectionIdToExclude, collaboratorGuids), x => GetClient(x).createAnnotationOnClient(connectionIdToExclude, new { userName, pageNumber, box, annotationPosition, documentGuid, annotationGuid, access, annotationType, replyGuid, userGuid, svgPath, serverTime = GetJavascriptDateTime(DateTime.UtcNow), drawingOptions = (drawingOptions != null ? new { penColor = drawingOptions.PenColor, penWidth = drawingOptions.PenWidth, penStyle = drawingOptions.PenStyle, brushColor = drawingOptions.BrushColor } : null), font = (font != null ? new { family = font.Family, size = font.Size } : null) })); }