Example #1
0
 /// <summary>
 /// Close the context and free applicable resources.
 /// <para>
 /// If <seealso cref="OwnsAeronClient()"/> is true then the <seealso cref="Aeron()"/> client will be closed.
 /// </para>
 /// </summary>
 public void Dispose()
 {
     if (_ownsAeronClient)
     {
         _aeron.Dispose();
     }
 }
            /// <summary>
            /// Close the context and free applicable resources.
            /// <para>
            /// If <seealso cref="OwnsAeronClient()"/> is true then the <seealso cref="Aeron()"/> client will be closed.
            /// </para>
            /// </summary>
            public void Dispose()
            {
                markFile?.Dispose();

                if (ownsAeronClient)
                {
                    aeron?.Dispose();
                }
            }
            /// <summary>
            /// Close the context and free applicable resources.
            /// <para>
            /// If <seealso cref="OwnsAeronClient()"/> is true then the <seealso cref="Aeron()"/> client will be closed.
            /// </para>
            /// </summary>
            public void Dispose()
            {
                CloseHelper.QuietDispose(markFile);

                if (ownsAeronClient)
                {
                    aeron?.Dispose();
                }
            }