public static void AssertAndFailFastService(bool condition, string description) { if (!condition) { Fx.AssertAndFailFastService(description); } }
private void UnhandledExceptionFrame(object sender, TransactionEventArgs args) { RuntimeHelpers.PrepareConstrainedRegions(); try { this.callback(sender, args); } catch (System.Exception exception) { throw Fx.AssertAndFailFastService(exception.ToString()); } }
public T FindTransactionResultExtension <T>(string transactionId) { TransactionResult transactionResult; T t; lock (this.syncLock) { if (!this.transactionResults.TryGetValue(transactionId, out transactionResult)) { throw Fx.AssertAndFailFastService(SRClient.CannotFindTransactionResult(transactionId)); } t = transactionResult.Extensions.Find <T>(); } return(t); }