Skip to content

Instantly share code, notes, and snippets.

@krlm
krlm / ConstrainedSample.java
Last active February 7, 2018 21:25
mssql-jdbc connection pooling and kerberos constrained delegation
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
@krlm
krlm / gist:6028348
Last active December 19, 2015 22:38
Custom attribute access from FastMember Member class
/// <summary>
/// Represents an abstracted view of an individual member defined for a type
/// </summary>
public sealed class Member
{
private readonly MemberInfo member;
private readonly static ConcurrentDictionary<MemberInfo, object> attributeLookup = new ConcurrentDictionary<MemberInfo, object>();
/// <summary>