This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using NRedisStack.RedisStackCommands; | |
using NRedisStack.Search; | |
using NRedisStack.Search.Aggregation; | |
using StackExchange.Redis; | |
var muxer = ConnectionMultiplexer.Connect("localhost"); | |
var db = muxer.GetDatabase(); | |
string[] strings = new string[100]; | |
for (int i = 0; i < 100; i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Theory] | |
[InlineData(true)] | |
[InlineData(false)] | |
public void TryBreakResp3(bool useResp3) | |
{ | |
var muxer = Fixture.GetConnection(this, useResp3); | |
var db = muxer.GetDatabase(); | |
db.Execute("DEL", "zset:1"); | |
db.Execute("ZADD", "zset:1", 4, "foo"); | |
var result = db.Execute("ZRANGE", "zset:1", 0, -1, "WITHSCORES"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
using StackExchange.Redis; | |
namespace StreamsExample | |
{ | |
class Program | |
{ | |
static async Task Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----BEGIN PRIVATE KEY----- | |
MIIEugIBADANBgkqhkiG9w0BAQEFAASCBKQwggSgAgEAAoIBAQCnKmLvOmDuCiqS | |
NPUTjdDsa82GB7LAEMJhrSk3ccgLJwztYBsyR4oRqu9EF+IjlI1JtkRNYBYLm3PX | |
NHZC34S7TpamXNRe0pm5wtPw8x4DikkditNZFTjS2EvTg/pHJNs30IBGeY5ogomv | |
+a78Pjj1Tf2gQGtj88V39NbYBPOq/zGu328gIaOX96XZbO2oLdlZ4ZDQv/juuUR6 | |
b9oA/ZnSwf7aDfpZIEru91mb2GpuOLrb5IokPU0dfoUdA6O/t6jD7pMRr9m0fqTW | |
1It6txo9nnPsdYosJmikKGePN1O5SdEQlY3GTbTkRYgFYfeHsBdejRRAowusXRH6 | |
hu99qheRAgMBAAECgf8i7zi9xfV7yaQb6fVNoNWIkv7gg7tXaCk3QHjcnWqw6fhJ | |
o0wLteekyZQ3JsabqO/d97lOckYpJtOOpegREaUrf8D8A2peZqS5rX2dXTFoi/27 | |
rsd8VnMJnSo7idlEBO/LOkeUctLQBHfBzuxCyr4cha/7TXsj6E3cQ86iVmaV1WhP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"action": "talk", | |
"text": "Please wait while we connect you." | |
}, | |
{ | |
"action": "connect", | |
"endpoint": [ | |
{ | |
"type": "phone", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"action":"talk", | |
"text":"Testing testing 1 2 3 4 5 6 7 8 9 10 - you've called into Nexmo" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace TestSwitchExpressions | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Hello World!"); | |
var resposne = CarMakeFactory(CarMake.Ford); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Newtonsoft.Json; | |
using System.Net.Http; | |
using System.Net; | |
using System.IO; | |
using System.Diagnostics; | |
namespace ConsoleApp15 | |
{ | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MessagesTensorFlow | |
{ | |
public class MessageRequest | |
{ | |
public To to { get; set; } | |
public From from { get; set; } | |
public Message message { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
namespace MessagesTensorFlow | |
{ | |
public class InboundMessage | |
{ | |
[JsonProperty("message_uuid")] | |
public string message_uuid { get; set; } | |
[JsonProperty("to")] |
NewerOlder