public void MessageReceiver(object?sender, SPPMessage e) { Dispatcher.UIThread.InvokeAsync(() => { BaseMessageParser?parser = SPPMessageParserFactory.BuildParser(e); DispatchEvent(parser, e.Id); }, DispatcherPriority.DataBind); }
public BaseMessageParser?BuildParser() { return(SPPMessageParserFactory.BuildParser(this)); }