Пример #1
0
            public Item_Index_Error Error;             // JSON field: 'error'

            /// <summary>
            /// Resets the item for re-use.
            /// </summary>
            public void Reset()
            {
                mIndexProxy   = new StringPropertyProxy(mPool);
                mTypeProxy    = new StringPropertyProxy(mPool);
                mIdProxy      = new StringPropertyProxy(mPool);
                mVersionProxy = default;
                mResultProxy  = new StringPropertyProxy(mPool);
                mPool.Return(Shards);
                Shards = null;
                mSequenceNumberProxy = default;
                mPrimaryTermProxy    = default;
                mStatusProxy         = default;
                mPool.Return(Error);
                Error = null;
            }
            public Item_Index Index;             // JSON field: 'index'

            /// <summary>
            /// Resets the item for re-use.
            /// </summary>
            public void Reset()
            {
                mPool.Return(Index);
                Index = null;
            }
Пример #3
0
        }                                             // JSON field: 'items'

        /// <summary>
        /// Returns the response to the pool.
        /// The response must not be used any more afterwards.
        /// </summary>
        public void ReturnToPool()
        {
            mPool.Return(this);
        }