protected override void OnMessageReceived(string topic, string message) { var parsedMessage = message.Split('|'); if (parsedMessage.Length != 2) { throw new ArgumentOutOfRangeException("wrong arguments: " + parsedMessage); } var args = new CompletionItemArgs() { First = parsedMessage [0], Second = parsedMessage [1] }; var items = GetCompletionItems(args); var result = GetParsedString(items); OnSendMessage(TopicReceive, result); }
public abstract CompletionItem [] GetCompletionItems(CompletionItemArgs args);
public override CompletionItem [] GetCompletionItems(CompletionItemArgs args) { return(new CompletionItem [0]); }