Ejemplo n.º 1
0
 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()));
     }
 }
Ejemplo n.º 2
0
 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()));
     }
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 protected void Application_End()
 {
     PTCore.Terminate();
     ServiceLogger.Informational("Exiting application");
 }