Inheritance: System.EventArgs
 public static void On_ShutDown(ShutdownEventArgs args)
 {
     for (int i = 0; i < Registry.Count; ++i)
     {
         Field d = (Field)Registry[i];
         d.EndSelf();
     }
 }
Exemple #2
0
		public static void EventSink_Shutdown( ShutdownEventArgs e )
		{
			try
			{
				World.Broadcast( 0x35, true, "The server has shut down." );
			}
			catch (Exception ex) { EventSink.InvokeLogException(new LogExceptionEventArgs(ex)); }
		}
Exemple #3
0
		public static void EventSink_Shutdown( ShutdownEventArgs e )
		{
			try
			{
				World.Broadcast( 0x35, false, "Le serveur s'est éteint." );
			}
			catch
			{
			}
		}
Exemple #4
0
 public static void EventSink_Shutdown( ShutdownEventArgs e )
 {
     try
     {
         World.Broadcast(0x35, true, "[System]: The server has shut down.");
     }
     catch
     {
     }
 }
 public static void EventSink_Shutdown( ShutdownEventArgs e )
 {
     try
     {
         World.Broadcast( 0x35, true, "The server has shut down for maintenance." );
     }
     catch
     {
     }
 }
Exemple #6
0
 public static void EventSink_Shutdown( ShutdownEventArgs e )
 {
     try
     {
         World.Broadcast( 0x35, true, "O servidor foi encerrado." );
     }
     catch
     {
     }
 }
 public static void InvokeShutdown( ShutdownEventArgs e )
 {
     if ( Shutdown != null )
         Shutdown( e );
 }
Exemple #8
0
		private static void EventSink_Shutdown(ShutdownEventArgs e)
		{
			for (int ix = 0; ix < LogHelper.OpenLogs.Count; ix++)
			{
				LogHelper lh = LogHelper.OpenLogs[ix] as LogHelper;
				if (lh != null)
					lh.Finish();
			}
		}
        public virtual void On_ShutDown(ShutdownEventArgs args)
        {
            for (int i = 0; i < Field_Config.Controllers.Count; ++i)
            {
                FieldController d = (FieldController)Field_Config.Controllers[i];

                if (d.HasStarted && d.Handeling != null)
                    d.EndField(0);
            }
        }
        public virtual void On_ShutDown(ShutdownEventArgs args)
        {
            for (int i = 0; i < RVS_Config.Controllers.Count; ++i)
            {
                RVSController d = (RVSController)RVS_Config.Controllers[i];

                if (d.HasStarted && d.Handeling != null)
                    d.EndRVS(0);
            }
        }
Exemple #11
0
		public static void InvokeShutdown(ShutdownEventArgs e)
		{
			if (Shutdown != null)
			{
				foreach (ShutdownEventHandler currentDelegate in Shutdown.GetInvocationList())
				{
					try
					{
						currentDelegate.Invoke(e);
					}
					catch (Exception ex)
					{
						// Log an exception
						EventSink.InvokeLogException(new LogExceptionEventArgs(ex));
					}
				}
			}
		}
Exemple #12
0
 public static void InvokeShutdown(ShutdownEventArgs e)
 {
     Shutdown?.Invoke(e);
 }