NServiceBus.MessageQueueExtensions.GetSidForUser C# (CSharp) Method

GetSidForUser() static private method

static private GetSidForUser ( string username ) : string
username string
return string
        static string GetSidForUser(string username)
        {
            var account = new NTAccount(username);
            var sid = (SecurityIdentifier) account.Translate(typeof(SecurityIdentifier));

            return sid.ToString();
        }