public void RestartStream(string streamName) { TwitterStream ts = streamManager.GetStream(streamName); if (ts != null) { ts.Restart(); } }
public bool Get([FromBody] LoginData data) { TwitterStream ts = streamManager.GetStream(data.Stream); if (ts != null) { bool res = streamManager.ChangeUserCredentials(data.Handle, data.Token, data.Stream); if (res) { ts.Restart(); return(true); } } return(false); }