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

SNIOpenMarsSession() static private method

static private SNIOpenMarsSession ( ConsumerInfo consumerInfo, System.Data.SqlClient.SNIHandle parent, IntPtr &pConn, bool fSync ) : uint
consumerInfo ConsumerInfo
parent System.Data.SqlClient.SNIHandle
pConn IntPtr
fSync bool
return uint
        internal static unsafe uint SNIOpenMarsSession(ConsumerInfo consumerInfo, SNIHandle parent, ref IntPtr pConn, bool fSync)
        {
            // initialize consumer info for MARS
            Sni_Consumer_Info native_consumerInfo = new Sni_Consumer_Info();
            MarshalConsumerInfo(consumerInfo, ref native_consumerInfo);

            return SNIOpenWrapper(ref native_consumerInfo, "session:", parent, out pConn, fSync);
        }

Usage Example

Ejemplo n.º 1
0
 // constructs SNI Handle for MARS session
 internal SNIHandle(SNINativeMethodWrapper.ConsumerInfo myInfo, SNIHandle parent) : base(IntPtr.Zero, true)
 {
     RuntimeHelpers.PrepareConstrainedRegions();
     try {} finally {
         _status = SNINativeMethodWrapper.SNIOpenMarsSession(myInfo, parent, ref base.handle, parent._fSync);
     }
 }
All Usage Examples Of System.Data.SqlClient.SNINativeMethodWrapper::SNIOpenMarsSession