BitSharp.Network.RemoteSender.SendInventory C# (CSharp) Method

SendInventory() public method

public SendInventory ( ImmutableArray invVectors ) : Task
invVectors ImmutableArray
return Task
        public async Task SendInventory(ImmutableArray<InventoryVector> invVectors)
        {
            await Task.Yield();

            var invPayload = Messaging.ConstructInventoryPayload(invVectors);
            var invMessage = Messaging.ConstructMessage("inv", NetworkEncoder.EncodeInventoryPayload(invPayload));

            await SendMessageAsync(invMessage);
        }