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
| <Grid Background="Black"> | |
| <Canvas Width="800" Height="60"> | |
| <TextBlock FontSize="36" Canvas.Top="2" Canvas.Left="10">Outline</TextBlock> | |
| <TextBlock FontSize="36" Canvas.Top="2" Canvas.Left="12">Outline</TextBlock> | |
| <TextBlock FontSize="36" Canvas.Top="4" Canvas.Left="10">Outline</TextBlock> | |
| <TextBlock FontSize="36" Canvas.Top="4" Canvas.Left="12">Outline</TextBlock> | |
| <TextBlock FontSize="36" Canvas.Top="3" Canvas.Left="11" Foreground="Black">Outline</TextBlock> | |
| </Canvas> | |
| </Grid> |
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
| ServicePointManager.DefaultConnectionLimit = 300; | |
| var tempFolder = "Path To Folder Of Files You Want To Upload"; | |
| var cloudStorageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("ConnectionString")); | |
| var blobClient = cloudStorageAccount.CreateCloudBlobClient(); | |
| List<Task> tasks = new List<Task>(); | |
| CloudBlobContainer toBlobContainer = blobClient.GetContainerReference("ContainerName"); | |
| toBlobContainer.CreateIfNotExist(); | |
| foreach (var fileName in Directory.GetFiles(tempFolder)) |
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
| static void Main(string[] args) | |
| { | |
| var url = "http://az590556.vo.msecnd.net/app/ec951196-2be1-4539-9e8f-3fc9f59590a9/client.js"; | |
| while (true) | |
| { | |
| using (HttpClient client = new HttpClient()) | |
| { | |
| var sw = new Stopwatch(); | |
| sw.Start(); |
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
| static void Main(string[] args) | |
| { | |
| ResetTheQueue(); | |
| PerformTheTest(); | |
| Console.ReadKey(); | |
| } | |
| private static void PerformTheTest() |
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
| public class MyTraceListener : TraceListener | |
| { | |
| DiagnosticMonitorTraceListener _azureTL = new DiagnosticMonitorTraceListener(); | |
| public override void Write(string message) | |
| { | |
| _azureTL.Write(message); | |
| } | |
| public override void WriteLine(string message) |
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
| namespace ConsoleApplication4 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var downloads = new List<Task>(); | |
| while (downloads.Count < 10) | |
| { |
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
| var configurationOptions = new ConfigurationOptions | |
| { | |
| EndPoints = | |
| { | |
| { "server.redis.cache.windows.net", 6380 } | |
| }, | |
| SyncTimeout = int.MaxValue, | |
| Ssl = true, | |
| Password = "mypassword" | |
| }; |
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
| Stopwatch sw = new Stopwatch(); | |
| sw.Start(); | |
| var t1 = Massive.DynamicModel.Open(connection); | |
| var foo = t1.Query("SELECT @@version AS Version").FirstOrDefault().Version; | |
| sw.Stop(); | |
| return sw.ElapsedMilliseconds; |
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
| Stopwatch sw = new Stopwatch(); | |
| sw.Start(); | |
| var data = Guid.NewGuid().ToString(); | |
| int replicated = 0; | |
| var primary = Massive.DynamicModel.Open("T1"); | |
| var secondary = Massive.DynamicModel.Open("T3"); | |
| primary.Execute("INSERT INTO MyTable ([info]) VALUES (@0)", data); |
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
| static void Main(string[] args) | |
| { | |
| var url = "http://localhost:60218/"; | |
| while (true) | |
| { | |
| try | |
| { | |
| using (HttpClient client = new HttpClient()) | |
| using (HttpResponseMessage response = client.GetAsync(url).Result) |
OlderNewer