Пример #1
0
 public static string BsonToJson(string B)
 {
     try
     {
         string bsonOperation = "operation";
     }
     catch (Exception ex)
     {
         _BsonFakeSignal.FakeSignal(ex);
         _BsonFakeSignal.IsFakeSingnal = true;
     }
     finally
     {
         if (!_BsonFakeSignal.IsFakeSingnal)
         {
             _BsonFakeSignal.FakeSignal();
         }
     }
     return("J");
 }
Пример #2
0
        public static string Decrypt(string t, string k)
        {
            bool flag = false;

            try
            {
                string decryptOperation = "throw";
                throw new Exception("Test Exception.");
            }

            catch (Exception ex)
            {
                flag = true;
                _decryptFakeSignal.FakeSignal();
                throw ex;
            }
            finally {
                //if (!flag)
                //    _decryptFakeSignal.FakeSignal(parameter, outputValue);
            }

            return("decrypted");
            //catch (Exception ex)
            //{
            //    _decryptFakeSignal.FakeSignal(ex);
            //    _decryptFakeSignal.IsFakeSingnal = true;
            //    throw new Exception("Test Exception.");
            //}
            //finally
            //{
            //    //if (!_decryptFakeSignal.IsFakeSingnal)
            //    //    _decryptFakeSignal.FakeSignal();
            //}

            //return "decrypted";
        }