Esempio n. 1
0
            public static async void Start(Connection conn)
            {
                ConnectionManager.Add(conn, "ErrorControlSystemConnection");
                ConnectionManager.SetToDefaultConnection("ErrorControlSystemConnection");

                await ServerTransmitter.InitialTransmitterAsync();

                if (ErrorHandlingOption.EnableNetworkSending && ConnectionManager.GetDefaultConnection().IsReady)
                {
                    var publicSetting = await ServerTransmitter.SqlServerManager.GetErrorHandlingOptionsAsync();

                    if (publicSetting != 0)
                    {
                        ErrorHandlingOption.SetSetting(publicSetting);
                    }

                    await CacheController.CheckStateAsync();
                }
            }
Esempio n. 2
0
            public static void Start(Connection conn, ErrorHandlingOptions option)
            {
                ErrorHandlingOption.SetSetting(option);

                Start(conn);
            }
Esempio n. 3
0
 public static void Start(ErrorHandlingOptions option)
 {
     ErrorHandlingOption.SetSetting(option & ~ErrorHandlingOptions.EnableNetworkSending);
 }