This file contains hidden or 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.Security.Cryptography; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var r = RollDice(250); |
This file contains hidden or 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.Diagnostics; | |
using System.ServiceModel; | |
using System.ServiceModel.Description; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Castle.Facilities.WcfIntegration; | |
using Castle.MicroKernel.Registration; | |
using Castle.Windsor; |
This file contains hidden or 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
void Main() | |
{ | |
var client = new TcpClient("192.168.1.6", 4028); | |
using (var stream = client.GetStream()) | |
{ | |
using (var reader = new StreamReader(stream)) | |
{ | |
var data = System.Text.Encoding.ASCII.GetBytes("{\"command\":\"summary\",\"parameter\":\"\"}"); | |
stream.Write(data, 0, data.Length); |
NewerOlder