/// <summary> /// Sends a PartsDeletedByRange message to a customer. /// </summary> /// <param name="request">The request.</param> /// <param name="uri">The URI.</param> /// <param name="startIndex">The start index.</param> /// <param name="endIndex">The end index.</param> /// <param name="uom">The unit of measure.</param> /// <param name="depthDatum">The depth datum.</param> /// <param name="includeOverlappingIntervals"><c>true</c> if overlapping intervals should be included; otherwise, <c>false</c>.</param> /// <param name="changeTime">The change time.</param> /// <returns>The message identifier.</returns> public long PartsDeletedByRange(IMessageHeader request, string uri, object startIndex, object endIndex, string uom, string depthDatum, bool includeOverlappingIntervals, long changeTime) { var header = CreateMessageHeader(Protocols.GrowingObjectNotification, MessageTypes.GrowingObjectNotification.PartsDeletedByRange, request.MessageId); var message = new PartsDeletedByRange { Uri = uri, DeletedInterval = new IndexInterval { StartIndex = new IndexValue { Item = startIndex }, EndIndex = new IndexValue { Item = endIndex }, Uom = uom ?? string.Empty, DepthDatum = depthDatum ?? string.Empty }, IncludeOverlappingIntervals = includeOverlappingIntervals, ChangeTime = changeTime }; return(Session.SendMessage(header, message)); }
/// <summary> /// Handles the PartsDeletedByRange message from a store. /// </summary> /// <param name="header">The message header.</param> /// <param name="notification">The PartsDeletedByRange message.</param> protected virtual void HandlePartsDeletedByRange(IMessageHeader header, PartsDeletedByRange notification) { Notify(OnPartsDeletedByRange, header, notification); }