Example #1
0
        static HttpEncoder()
        {
#if NET_4_0
            defaultEncoder = new Lazy <HttpEncoder> (() => new HttpEncoder ());
            currentEncoderLazy = new Lazy <HttpEncoder> (new Func <HttpEncoder> (GetCustomEncoderFromConfig));
#else
            DefaultEncoder = new HttpEncoder();
            CurrentEncoder = DefaultEncoder;
#endif
        }
Example #2
0
 static HttpEncoder()
 {
     defaultEncoder = new HttpEncoder();
     currentEncoder = defaultEncoder;
 }