public void WaitForNothing(Reaction.IAreaReaction react) { FacebookClient fb = new FacebookClient(_token); fb.GetCompleted += (o, e) => { dynamic result = e.GetResultData(); if (e.Error == null) { react.Do(_token, result.message); } }; while (true) { Task.Delay(200); fb.GetTaskAsync("me/feed"); } }
public FacebookAction(string token, string actionName, Reaction.IAreaReaction reaction) : base() { _token = token; _reaction = reaction; }