/// <summary> /// Sends a DeleteObject message to a store. /// </summary> /// <param name="uri">The URI.</param> /// <returns>The sent message on success; <c>null</c> otherwise.</returns> public virtual EtpMessage <DeleteObject> DeleteObject(string uri) { var body = new DeleteObject() { Uri = uri ?? string.Empty, }; return(SendNotification(body)); }
/// <summary> /// Sends a DeleteObject message to a store. /// </summary> /// <param name="uri">The URI.</param> /// <returns>The message identifier.</returns> public virtual long DeleteObject(string uri) { var header = CreateMessageHeader(Protocols.Store, MessageTypes.Store.DeleteObject); var deleteObject = new DeleteObject() { Uri = uri }; return(Session.SendMessage(header, deleteObject)); }
/// <summary> /// Handles the DeleteObject message from a customer. /// </summary> /// <param name="header">The message header.</param> /// <param name="deleteObject">The DeleteObject message.</param> protected virtual void HandleDeleteObject(IMessageHeader header, DeleteObject deleteObject) { Notify(OnDeleteObject, header, deleteObject); }