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 NHibernate.Cache; | |
using Pipelines.Sockets.Unofficial.Threading; | |
//Depends on nuget package: https://www.nuget.org/packages/Pipelines.Sockets.Unofficial | |
namespace YourNamespace | |
{ | |
public class MutexSlimCacheLock : ICacheLock | |
{ |
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; | |
using System.Threading.Tasks; | |
using NHibernate.Cache; | |
namespace YourNamespace | |
{ | |
public class LegacyCacheLock : ICacheLock | |
{ | |
class MonitorLock : IDisposable |
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.IO; | |
using System.Linq; | |
using System.Runtime.Serialization.Formatters.Binary; | |
using NHibernate.Cfg.MappingSchema; | |
using NHibernate.Mapping.ByCode; | |
using NUnit.Framework; | |
namespace NHibernate.Test.NHSpecificTest.GH2563 | |
{ |
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
local print = require("print") | |
require("buttons") | |
require("rbsettings") | |
require("settings") | |
local goToMs = 0 | |
-- goToMode: 0 - seconds; 1 - minutes; 2 -hours | |
local goToMode=0 | |
local maxGoToMode = 2 |
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
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("tr-TR"); | |
using (SqlConnection con = new SqlConnection(northwindDbConnectionString)) | |
using (SqlCommand com = new SqlCommand("select top 1 ProductID from Products",con)) | |
{ | |
con.Open(); | |
DataTable dt = new DataTable(); | |
SqlDataAdapter adapter = new SqlDataAdapter(com); | |
adapter.Fill(dt); |