예제 #1
0
        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);
        }
예제 #2
0
 public abstract CompletionItem [] GetCompletionItems(CompletionItemArgs args);
 public override CompletionItem [] GetCompletionItems(CompletionItemArgs args)
 {
     return(new CompletionItem [0]);
 }