CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of CodeRush
C#
        protected override void Initialize(RequestContext requestContext)
        {
            if (requestContext.HttpContext.User.Identity is WindowsIdentity)
            {
                throw new InvalidOperationException("Windows authentication is not supported.");
            }
            else
            {
                base.Initialize(requestContext);
            }
by Douglas Rohm   February 12, 2010 @ 12:23pm
Tags: CodeRush
186 Views
no comments
 
C#
        public const string SafeUrlCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~";
by Mehul Harry   December 15, 2009 @ 4:13pm
335 Views
no comments
 
C#
        /// <summary>
        /// Encrypts a string at the current user's scope using DPAPI.
        /// </summary>
        /// <param name="toEncrypt">The string to encrypt.</param>
        /// <param name="key">The key used to encrypt it.</param>
        /// <returns>
        /// The encrypted bytes that only the current user, with the specified key,
        /// can decrypt again.
        /// </returns>
        /// <seealso cref="CR_CodeTweet.ByteExtensions.Decrypt" />
by Mehul Harry   December 15, 2009 @ 4:07pm
316 Views
no comments
 
C#
        /// <summary>
        /// URL-encodes a string for use with OAuth.
        /// </summary>
        /// <param name="toEncode">
        /// The string to encode.
        /// </param>
        /// <returns>
        /// A URL-encoded string where all of the encoded characters are upper-case.
        /// </returns>
        /// <remarks>
by Mehul Harry   December 15, 2009 @ 3:01pm
387 Views
no comments
 
C#
    public abstract class ContentPreprocessorBase
    {
        abstract protected string PreprocessContent(string stringToProcess);
by Stephen Bohlen   December 08, 2009 @ 9:36am
300 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate