/// <summary> /// Sends a segment of a message to the network for a given consensus topic. /// The caller of this method is responsible for managing the segment of the /// message and associated metadata. /// </summary> /// <param name="submitParams"> /// Details of the message segment to upload, including the metadata /// corresponding to this segment. /// </param> /// <param name="configure"> /// Optional callback method providing an opportunity to modify /// the execution configuration for just this method call. /// It is executed prior to submitting the request to the network. /// </param> /// <returns> /// A Submit Message Receipt indicating success, includes information /// about the sequence number of the message and its running hash. /// </returns> /// <exception cref="ArgumentOutOfRangeException">If required arguments are missing.</exception> /// <exception cref="InvalidOperationException">If required context configuration is missing.</exception> /// <exception cref="PrecheckException">If the gateway node create rejected the request upon submission.</exception> /// <exception cref="ConsensusException">If the network was unable to come to consensus before the duration of the transaction expired.</exception> /// <exception cref="TransactionException">If the network rejected the create request as invalid or had missing data.</exception> public Task <SubmitMessageReceipt> SubmitMessageAsync(SubmitMessageParams submitParams, Action <IContext>?configure = null) { return(SubmitMessageImplementationAsync <SubmitMessageReceipt>(submitParams.Topic, submitParams.Segment, true, submitParams.ParentTxId, submitParams.Index, submitParams.TotalSegmentCount, submitParams.Signatory, configure)); }