System.Data.SqlClient.SNINativeMethodWrapper.SNIWritePacket C# (CSharp) Method

SNIWritePacket() static private method

static private SNIWritePacket ( System.Data.SqlClient.SNIHandle pConn, System.Data.SqlClient.SNIPacket packet, bool sync ) : uint
pConn System.Data.SqlClient.SNIHandle
packet System.Data.SqlClient.SNIPacket
sync bool
return uint
        internal static uint SNIWritePacket(SNIHandle pConn, SNIPacket packet, bool sync)
        {
            if (sync)
            {
                return SNIWriteSyncOverAsync(pConn, packet);
            }
            else
            {
                return SNIWriteAsyncWrapper(pConn, packet);
            }
        }

Usage Example

 internal override uint WritePacket(object packet, bool sync) => SNINativeMethodWrapper.SNIWritePacket(Handle, (SNIPacket)packet, sync);