// Token: 0x06002406 RID: 9222 RVA: 0x000A81BC File Offset: 0x000A63BC public static void PreventOperationWhenTPREnabled(string operationName) { if (ThirdPartyManager.IsThirdPartyReplicationEnabled) { TPREnabledInvalidOperationException ex = new TPREnabledInvalidOperationException(operationName); try { throw ex; } finally { ThirdPartyManager.LogInvalidOperation(ex); } } }
public string GetPrimaryActiveManager(out byte[] exBytes) { ExTraceGlobals.ThirdPartyServiceTracer.TraceDebug(0L, "GetPrimaryActiveManager called"); exBytes = null; string pam = null; Exception ex = this.DoAction(delegate(object param0, EventArgs param1) { ThirdPartyService.CheckSecurity("GetPrimaryActiveManager"); pam = ThirdPartyManager.GetPrimaryActiveManager(); }); if (ex != null) { ExTraceGlobals.ThirdPartyServiceTracer.TraceError <Exception>((long)this.GetHashCode(), "GetPrimaryActiveManager fails: {0}", ex); if (!(ex is ThirdPartyReplicationException)) { ex = new GetPrimaryActiveManagerException(ex.Message); } exBytes = this.SerializeException(ex); } return(pam); }