This is an automated email from the ASF dual-hosted git repository.

curth pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 7e18764e1f GH-45769:[C#][flight] add FlightInfo ByteString 
serialization (#45770)
7e18764e1f is described below

commit 7e18764e1f0ce7afddb169863b6b2b35d26b75b2
Author: Christoph <[email protected]>
AuthorDate: Sun Mar 16 21:44:14 2025 +0100

    GH-45769:[C#][flight] add FlightInfo ByteString serialization (#45770)
    
    ### What changes are included in this PR?
    
    ToByteString extension method for FlightInfo 
https://github.com/apache/arrow/issues/45769
    
    ### Are these changes tested?
    
    YES
    
    ### Are there any user-facing changes?
    
    NO
    
    * GitHub Issue: #45769
    
    Authored-by: Christoph Mettler <[email protected]>
    Signed-off-by: Curt Hagenlocher <[email protected]>
---
 .../Extensions/FlightInfoExtensions.cs             | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/csharp/src/Apache.Arrow.Flight/Extensions/FlightInfoExtensions.cs 
b/csharp/src/Apache.Arrow.Flight/Extensions/FlightInfoExtensions.cs
new file mode 100644
index 0000000000..706e092a53
--- /dev/null
+++ b/csharp/src/Apache.Arrow.Flight/Extensions/FlightInfoExtensions.cs
@@ -0,0 +1,28 @@
+// Licensed to the Apache Software Foundation (ASF) under one or more
+// contributor license agreements. See the NOTICE file distributed with
+// this work for additional information regarding copyright ownership.
+// The ASF licenses this file to You under the Apache License, Version 2.0
+// (the "License"); you may not use this file except in compliance with
+// the License.  You may obtain a copy of the License at
+//
+//     http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+using Google.Protobuf;
+
+
+namespace Apache.Arrow.Flight.Extensions
+{
+    public static class FlightInfoExtensions
+    {
+        public static ByteString ToByteString(this FlightInfo flightInfo)
+        { 
+            return flightInfo.ToProtocol().ToByteString();
+        }
+    }
+}

Reply via email to