public void UnlockList(Channel channel) { lock (_listLocksLocker) { _listLocks.Remove(channel); ServiceLogger.Informational(String.Format(@"List #{0} on server {1} has been unlocked by {2}", channel.List, channel.Server, GetClientName())); } }
public void LockList(Channel channel, String clientName) { this._clientName = clientName; lock (_listLocksLocker) { if (!_listLocks.Contains(channel)) { _listLocks.Add(channel); } ServiceLogger.Informational(String.Format(@"List #{0} on server {1} has been locked by {2}", channel.List, channel.Server, GetClientName())); } }
protected void Application_Start() { var name = System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase); ServiceLogger.Informational(String.Format("{0} was started, host assembly: {1}", name, Assembly.GetExecutingAssembly().FullName)); // Logging of the unhandled exceptions AppDomain.CurrentDomain.UnhandledException += CurrentDomainUnhandledException; AreaRegistration.RegisterAllAreas(); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); PTCore.StartUp(name); }
protected void Application_End() { PTCore.Terminate(); ServiceLogger.Informational("Exiting application"); }