Beispiel #1
0
        /// <inheritdoc />
        public override void HandleOneWayMessage(IServiceRemotingRequestMessage requestMessage)
        {
            Activity?activity = null;

            try
            {
                activity = requestMessage.StartActivityFromIncomingRequest(m_diagnosticListener, OneWayMessageActivityName);
                base.HandleOneWayMessage(requestMessage);
                activity?.SetResult(ActivityResult.Success);
            }
            catch (Exception ex)
            {
                m_diagnosticListener.ReportException(ex);
                throw;
            }
            finally
            {
                m_diagnosticListener.StopActivityIfExist(activity);
            }
        }