public static Post ( SendOrPostCallback callback, object state = null ) : void | ||
callback | SendOrPostCallback | |
state | object | |
return | void |
public static void Post(SendOrPostCallback callback, object state = null)
{
lock (s_posts)
{
s_posts.Add(Tuple.Create(callback, state));
}
}
public static Communicator Create() { ChannelEventDispatcher.TryInit(); var communicator = new Communicator(); communicator.ChannelFactory.TaskFactory = new UnitySlimTaskFactory { Owner = ChannelEventDispatcher.Instance }; ((ObserverRegistry)communicator.ObserverRegistry).EventPoster = c => ChannelEventDispatcher.Post(c, null); return(communicator); }