public void AmeIsStarting(TimeSpan retryDelay, TimeSpan openTimeout, TimeSpan sendTimeout, TimeSpan receiveTimeout) { this.DoAction(delegate(object param0, EventArgs param1) { ThirdPartyService.CheckSecurity("AmeIsStarting"); ThirdPartyManager.Instance.AmeIsStarting(retryDelay, openTimeout, sendTimeout, receiveTimeout); }); }
public void AmeIsStopping() { this.DoAction(delegate(object param0, EventArgs param1) { ThirdPartyService.CheckSecurity("AmeIsStopping"); ThirdPartyManager.Instance.AmeIsStopping(); }); }
public byte[] ChangeActiveServer(Guid databaseId, string newActiveServerName) { ExTraceGlobals.ThirdPartyServiceTracer.TraceDebug <Guid, string>(0L, "ChangeActiveServer:db {0} moving to {1}", databaseId, newActiveServerName); Exception ex = this.DoAction(delegate(object param0, EventArgs param1) { ThirdPartyService.CheckSecurity("ChangeActiveServer"); ThirdPartyManager.Instance.ChangeActiveServer(databaseId, newActiveServerName); }); if (ex != null) { ReplayCrimsonEvents.TPRChangeActiveServerFailed.Log <Guid, string, string, string>(databaseId, newActiveServerName, ex.Message, ex.StackTrace); if (!(ex is ThirdPartyReplicationException)) { ex = new ChangeActiveServerException(databaseId, newActiveServerName, ex.Message); } return(this.SerializeException(ex)); } return(null); }
public byte[] ImmediateDismountMailboxDatabase(Guid databaseId) { ExTraceGlobals.ThirdPartyServiceTracer.TraceDebug <Guid>(0L, "ImmediateDismountMailboxDatabase:db {0}", databaseId); Exception ex = this.DoAction(delegate(object param0, EventArgs param1) { ThirdPartyService.CheckSecurity("ImmediateDismountMailboxDatabase"); ThirdPartyManager.Instance.ImmediateDismountMailboxDatabase(databaseId); }); if (ex != null) { ReplayCrimsonEvents.TPRImmediateDismountFailed.Log <Guid, string, string>(databaseId, ex.Message, ex.StackTrace); if (!(ex is ThirdPartyReplicationException)) { ex = new ImmediateDismountMailboxDatabaseException(databaseId, ex.Message); } return(this.SerializeException(ex)); } return(null); }
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); }