ServiceName | Set when running as Windows service. |
ExecutablePath | Same as Windows.Forms.Application.ExecutablePath |
IsRunningWithMono | returns true, when running with mono framework instead of Mocrosoft .NET (on Windows or Unix) |
Logger | Set your logging object here (null by default). It is passed to the logging methods of WcfTrc.ITracePlugin. You will use it when writing your own adapter class based on WcfTrc.ITracePlugin. The adapter class is needed to redirect trace output to your own logging/tracing framework. |
CurrentDomain_UnhandledException | Handle the non-UI exceptions by showing a dialog box, and asking the user whether or not they wish to abort execution. NOTE: This exception cannot be kept from terminating the application - it can only log the event, and inform the user about it. Before 'Application.Run' add the handler for handling non-UI thread exceptions to the event: AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(WcfTrc.DefaultTracePlugin.CurrentDomain_UnhandledException); |
Exit | Normal application end. |
InstallExitHandler | Install handlers for normal or abnormal application termination on Windows or Unix. |
WinForms_ThreadException | Handle the UI exceptions by showing a dialog box, and asking the user whether or not they wish to abort execution. Before 'Application.Run' add the event handler for handling UI thread exceptions: Application.ThreadException += new ThreadExceptionEventHandler(WcfTrc.DefaultTracePlugin.WinForms_ThreadException); Set the unhandled exception mode to force all Windows Forms errors to go through our handler. Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException); |
ApplicationExit | Event is raised for cleanup on application end. Environment.ExitCode must be set to 0 when application ends successful. Environment.ExitCode has been initialized to 1, indicating an application failure. |
WcfApplication Constructor | Initializes a new instance of the WcfApplication class. |
Equals (inherited from Object) | |
GetHashCode (inherited from Object) | |
GetType (inherited from Object) | |
ToString (inherited from Object) |
Finalize (inherited from Object) | |
MemberwiseClone (inherited from Object) |
WcfApplication Class | SourceForge.AsyncWcfLib Namespace