コード例 #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();
     }
 }
コード例 #2
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()
            {
                markFile?.Dispose();

                if (ownsAeronClient)
                {
                    aeron?.Dispose();
                }
            }
コード例 #3
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()
            {
                CloseHelper.QuietDispose(markFile);

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