コード例 #1
0
ファイル: KeyValueSchema.cs プロジェクト: eaba/SharpPulsar
            public ISchemaInfo GetSchemaByVersion(byte[] SchemaVersion)
            {
                var si = _outerInstance._schemaInfoProvider.GetSchemaByVersion(SchemaVersion);

                return(KeyValueSchemaInfo.DecodeKeyValueSchemaInfo(si).Value);
            }
コード例 #2
0
 /// <summary>
 /// Decode the key/value schema info to get key schema info and value schema info.
 /// </summary>
 /// <param name="schemaInfo"> key/value schema info. </param>
 /// <returns> the pair of key schema info and value schema info </returns>
 public static KeyValue <ISchemaInfo, ISchemaInfo> DecodeKeyValueSchemaInfo(ISchemaInfo schemaInfo)
 {
     return(KeyValueSchemaInfo.DecodeKeyValueSchemaInfo(schemaInfo));
 }