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; } }
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; } }
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; } } }
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; } } }