Beispiel #1
0
 public void TestIndexationKeyTooLong()
 {
     {
         var request =
             new SendDataRequest(
                 "8374598275781252890532895328952893573289529875293523897561289561287561897456128743612879461897461289746125129875129571985712985719257219857125",
                 "");
         request.Validate();
     }
 }
Beispiel #2
0
        public async Task <MessageResponse <IndexationPayload> > SendDataAsync(SendDataRequest request)
        {
            request.Validate();

            var message = new Message <IndexationPayload>
            {
                Payload = new IndexationPayload {
                    Index = request.IndexationKey.ToHex(), Data = request.Data.ToHex()
                }
            };

            var response = await this.Client.SendMessageAsync(message);

            return(new MessageResponse <IndexationPayload>(message, response.MessageId));
        }
Beispiel #3
0
        public void TestIndexationKeyIsEmpty()
        {
            var request = new SendDataRequest(string.Empty, "");

            request.Validate();
        }