Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ QueryBlittableContextAttributes< T >() [3/4]

static bool System.Net.SSPIWrapper.QueryBlittableContextAttributes< T > ( System::Net::ISSPIInterface secModule,
System::Net::Security::SafeDeleteContext securityContext,
global::Interop::SspiCli::ContextAttribute contextAttribute,
ref T attribute )
inlinestatic
Type Constraints
T :unmanaged 

Definition at line 261 of file SSPIWrapper.cs.

261 : unmanaged
262 {
263 Span<T> span = MemoryMarshal.CreateSpan(ref attribute, 1);
264 SafeHandle refHandle;
265 int num = secModule.QueryContextAttributes(securityContext, contextAttribute, MemoryMarshal.AsBytes(span), null, out refHandle);
266 using (refHandle)
267 {
268 if (num != 0)
269 {
270 if (System.Net.NetEventSource.Log.IsEnabled())
271 {
272 System.Net.NetEventSource.Error(null, $"ERROR = {ErrorDescription(num)}", "QueryBlittableContextAttributes");
273 }
274 return false;
275 }
276 return true;
277 }
278 }
static readonly System.Net.NetEventSource Log
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)
int QueryContextAttributes(System.Net.Security.SafeDeleteContext phContext, global::Interop.SspiCli.ContextAttribute attribute, Span< byte > buffer, Type handleType, out SafeHandle refHandle)

References System.Net.NetEventSource.Error(), and System.Net.NetEventSource.Log.