Skip to main content

SerializeMethod

A delegate in Root.Township, Alta.Networking.

Handler for a network message: gets the sending or receiving player and the stream, and both reads and writes the message with the same calls. The generic version also gets a typed argument.

Constructors​

MemberWhat it is
SerializeMethod(object object, IntPtr method)Made by the compiler when you assign a method to this delegate; you don't call it directly.

Methods​

MemberWhat it is
virtual IAsyncResult BeginInvoke(IPlayer player, Stream stream, AsyncCallback callback, object object)Standard delegate method for async invoke.
virtual void EndInvoke(IAsyncResult result)Standard delegate method for async invoke.
virtual void Invoke(IPlayer player, Stream stream)Calls the handler.

Used in​

Members of other types that take, return or hold a SerializeMethod: