Exemplo n.º 1
0
 public static void Test01()
 {
     var conf = @"nfx { web-settings { social {
     provider { type='NFX.Web.Social.GooglePlus, NFX.Web' client-code='396843619799' client-secret='0p8bbUnpmpH-q8APtbJVy0Oo' web-service-call-timeout-ms='20000' keep-alive='false' pipelined='false'}
     } } }".AsLaconicConfig();
       using (var app = new NFX.ApplicationModel.ServiceBaseApplication(new string[] {}, conf))
       {
     var social = WebSettings.SocialNetworks;
       }
 }
Exemplo n.º 2
0
        public static void Test01()
        {
            var conf = @"nfx { web-settings { social {  
        provider { type='NFX.Web.Social.GooglePlus, NFX.Web' client-code='396843619799' client-secret='0p8bbUnpmpH-q8APtbJVy0Oo' web-service-call-timeout-ms='20000' keep-alive='false' pipelined='false'}
} } }".AsLaconicConfig();

            using (var app = new NFX.ApplicationModel.ServiceBaseApplication(new string[] {}, conf))
            {
                var social = WebSettings.SocialNetworks;
            }
        }
Exemplo n.º 3
0
        public void FailedFastTimeout()
        {
            var conf = LACONF.AsLaconicConfig();

            using (var app = new NFX.ApplicationModel.ServiceBaseApplication(new string[] {}, conf))
            {
                try
                {
                    var client = new WebDAV(SVN_ROOT, 1, SVN_UNAME, SVN_UPSW);

                    WebDAV.Directory root = client.Root;
                    var children          = root.Children;
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.ToMessageWithType());
                    throw;
                }
            }
        }
Exemplo n.º 4
0
        public void FailedFastTimeout()
        {
            var conf = LACONF.AsLaconicConfig();

              using (var app = new NFX.ApplicationModel.ServiceBaseApplication(new string[] {}, conf))
              {
            try
            {
              var client = new WebDAV(SVN_ROOT, 1, SVN_UNAME, SVN_UPSW);

              WebDAV.Directory root = client.Root;
              var children = root.Children;
            }
            catch (Exception ex)
            {
              Console.WriteLine(ex.ToMessageWithType());
              throw;
            }
              }
        }