示例#1
0
 public RestfulConfluenceApi(ConfluenceConfig cfg)
 {
     _cfg        = cfg;
     _restClient = new RestClient(cfg.Endpoint);
     _restClient.Authenticator = new HttpBasicAuthenticator(cfg.Username, cfg.Password);
 }
示例#2
0
 public void WriteToConfluence(ConfluenceConfig cfg)
 {
     Updaters.Add(new ConfluenceDocumentationWriter(cfg, new SHA1Hasher()));
 }
 public void Y()
 {
     _updater = new RestfulConfluenceApi(ConfluenceConfig.FromConfig());
 }