Akka.Interfaced.SlimSocket.Client.ChannelEventDispatcher.Post C# (CSharp) Method

Post() public static method

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));
            }
        }

Usage Example

        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);
        }
All Usage Examples Of Akka.Interfaced.SlimSocket.Client.ChannelEventDispatcher::Post