internal virtual Headers Headers(IDictionary <string, sbyte[]> headers)
 {
     Headers.Builder builder = Headers.HeadersBuilder();
     foreach (KeyValuePair <string, sbyte[]> entry in headers.SetOfKeyValuePairs())
     {
         builder.Put(HeaderFields[entry.Key], entry.Value);
     }
     return(builder.Headers());
 }
Esempio n. 2
0
            protected internal override Headers InitialHeaders(long version)
            {
                Headers.Builder builder = Headers.HeadersBuilder();
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: for (HeaderField<?> field : headerFields)
                foreach (HeaderField <object> field in HeaderFields)
                {
                    PutHeader(builder, field);
                }
                return(builder.Headers());
            }
Esempio n. 3
0
 internal Headers UpdateHeaders(System.Action <Headers.Builder> headersUpdater)
 {
     Headers.Builder builder = new Headers.Builder(Headers.Copy(PreState.headers()));
     headersUpdater(builder);
     return(builder.Headers());
 }
Esempio n. 4
0
 protected internal override void UpdateHeaders(Headers.Builder headers, long version)
 {
     headers.Put(TX_ID, version);
 }
Esempio n. 5
0
 internal virtual void PutHeader <Value>(Headers.Builder builder, HeaderField <Value> field)
 {
     builder.Put(field, InitialHeader(field));
 }
Esempio n. 6
0
 protected internal abstract void UpdateHeaders(Headers.Builder headers, long version);