/// <summary>
        /// Sends a PutObject message to a store.
        /// </summary>
        /// <param name="dataObject">The data object.</param>
        /// <returns>The message identifier.</returns>
        public virtual long PutObject(DataObject dataObject)
        {
            var header = CreateMessageHeader(Protocols.Store, MessageTypes.Store.PutObject);

            var putObject = new PutObject()
            {
                DataObject = dataObject
            };

            return(Session.SendMessage(header, putObject));
        }
Exemple #2
0
 /// <summary>
 /// Handles the PutObject message from a customer.
 /// </summary>
 /// <param name="header">The message header.</param>
 /// <param name="putObject">The PutObject message.</param>
 protected virtual void HandlePutObject(IMessageHeader header, PutObject putObject)
 {
     Notify(OnPutObject, header, putObject);
 }