private FishbowlSDK.Fishbowl InitAPI() { var newfb = new FishbowlSDK.Fishbowl(cfg.FB.ServerAddress, cfg.FB.ServerPort, cfg.FB.FBIAKey, cfg.FB.FBIAName, cfg.FB.FBIADesc, cfg.FB.Persistent); newfb.SetTimeout(1000, 1000); newfb.login(cfg.FB.Username, cfg.FB.Password); newfb.SetTimeout(1000 * 60 * 14, 1000 * 60 * 14); return(newfb); }
public void Dispose() { if (api != null) { api.Dispose(); api = null; } if (db != null) { db.Dispose(); db = null; } }
private FishbowlSDK.Fishbowl InitAPI() { var newfb = new FishbowlSDK.Fishbowl(cfg.Fishbowl.ServerAddress, cfg.Fishbowl.ServerPort, cfg.Fishbowl.FBIAKey, cfg.Fishbowl.FBIAName, cfg.Fishbowl.FBIADesc, cfg.Fishbowl.Persistent, cfg.Fishbowl.Username, cfg.Fishbowl.Password); return(newfb); }
public FbController(Config cfg) { this.cfg = cfg; db = InitDB(); api = InitAPI(); }