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.Collections.Generic; | |
namespace DigitalFuture.Intranet.Models.Analytics | |
{ | |
public class ChartObject | |
{ | |
public int totalRecordCount { get; set; } | |
public string timeResolution { get; set; } | |
public List<object> messages { get; set; } | |
public Data data { 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
/tmp/WindowsService1.exe | |
/tmp/WindowsService1.exe.config |
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.ServiceProcess; | |
namespace WindowsService1 | |
{ | |
public partial class Service1 : ServiceBase | |
{ | |
public Service1() | |
{ | |
InitializeComponent(); | |
} |
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
if(typeof String.prototype.trim !== 'function') { | |
String.prototype.trim = function() { | |
return this.replace(/^\s+|\s+$/g, ''); | |
} | |
} |
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
public class MegaClass | |
{ | |
public async void StartAsync() | |
{ | |
await Task.Run(() => { LongProcedure(); }); | |
Console.WriteLine("End"); | |
} | |
public void Start() | |
{ |
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.Collections.Generic; | |
using System.IO; | |
namespace ZipLib | |
{ | |
public class ZipFuncs | |
{ | |
public static byte[] CreateZipArhive(List<string> _pathin) | |
{ | |
if ((_pathin ?? new List<string>()).Count > 0) |
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 RunFileLib | |
{ | |
public class ExeFileModel | |
{ | |
public ExeFileModel() | |
{ | |
LastStart = DateTime.Now.AddDays(-1); | |
} |
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
public class SampleEventArgs | |
{ | |
public SampleEventArgs(string s) { Text = s; } | |
public String Text { get; private set; } // readonly | |
} | |
public class Publisher | |
{ | |
//Sample delegate | |
public delegate void SampleEventHandler(object sender, SampleEventArgs e); | |
//GenericDelegate |
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
public class XSDRoutine | |
{ | |
public static void Check(string pathXsd,string pathXml) | |
{ | |
XmlSchemaSet sc = new XmlSchemaSet(); | |
sc.Add("", pathXsd); | |
XmlReaderSettings settings = new XmlReaderSettings() | |
{ |
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.Collections.Generic; | |
using System.Threading.Tasks; | |
using System.Threading; | |
namespace TestCustomCache | |
{ | |
public sealed class CacheSingleton | |
{ | |
private static readonly SynchronizedCache instance = new SynchronizedCache(); |
NewerOlder