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
| -- Identify repl errors | |
| USE [DISTRIBUTOR] | |
| SELECT * FROM MSrepl_errors | |
| ORDER BY time DESC | |
| -- Identify the publisher database id | |
| SELECT * FROM MSpublisher_databases | |
| -- Identify the ID number and command id of the command causing the problem. | |
| -- This will typically show up in the Replication Monitor. |
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.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Windows; | |
| using System.Windows.Controls; | |
| using System.Windows.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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace ConsoleApplication2 | |
| { | |
| class Program |
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
| CREATE DATABASE IF NOT EXISTS `asteriskrealtime`; | |
| USE `asteriskrealtime`; | |
| /*Table structure for table `queue_log` */ | |
| DROP TABLE IF EXISTS `queue_log`; | |
| CREATE TABLE `queue_log` ( | |
| `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, |
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
| "use strict"; | |
| var gulp = require('gulp'); | |
| var connect = require('gulp-connect'); | |
| var open = require('gulp-open'); | |
| var config = { | |
| port: 8005, | |
| devBaseUr: 'http://localhost', | |
| paths: { |
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 static class CsvParser | |
| { | |
| private static string CheckSpecialChar(string checkChar) | |
| { | |
| return checkChar.Replace("\"", ""); | |
| } | |
| public static Collection<UploadExtensionModel> ParseExtension(string fileName) | |
| { | |
| string[] lines; |
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.Collections.Generic; | |
| using System.Linq; | |
| namespace Sample | |
| { | |
| public class ConnectionMapping<T> | |
| { | |
| private readonly Dictionary<T, HashSet<string>> _connections = | |
| new Dictionary<T, HashSet<string>>(); |
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
| internal class DependencyConfigure | |
| { | |
| public static void Initialize() | |
| { | |
| var builder = new ContainerBuilder(); | |
| DependencyResolver.SetResolver(new AutofacDependencyResolver(RegisterServices(builder))); | |
| } | |
| private static IContainer RegisterServices(ContainerBuilder builder) | |
| { |
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
| [Test] | |
| public void Run_With_InboxMessages_Should_Call_Repo_Save() | |
| { | |
| //Arrange | |
| var apiConfig = new ApiConfig(); | |
| apiConfig.SetCommPort(new CommPort()); | |
| var fakeApi = A.Fake<ISmsApi>(); | |
| var fakeLogging = A.Fake<ILogging>(); | |
| var fakeOutgoingsmsRepo = A.Fake<ISmsOutgoingRepository>(); |
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.Collections.Generic; | |
| using System.Reflection; | |
| namespace CallCosting.Reporting | |
| { | |
| public class ReportFactory | |
| { | |
| public ReportFactory() | |
| { |