// Token: 0x06000460 RID: 1120 RVA: 0x000174C0 File Offset: 0x000156C0 public override RpcErrorExceptionInfo GetPrimaryActiveManager(ref AmPamInfo pamInfo) { AmPamInfo tmpPamInfo = null; RpcErrorExceptionInfo result = AmRpcExceptionWrapper.Instance.RunRpcServerOperation(delegate() { tmpPamInfo = AmRpcServer.m_amInstance.GetPrimaryActiveManager(); }); pamInfo = tmpPamInfo; return(result); }
public static void SetDagNetwork(DatabaseAvailabilityGroup dag, SetDagNetworkRequest change) { if (dag.Servers.Count == 0) { return; } AmPamInfo primaryActiveManager = AmRpcClientHelper.GetPrimaryActiveManager(ADObjectWrapperFactory.CreateWrapper(dag)); string targetServerName = primaryActiveManager.ServerName; byte[] changeAsBytes = Serialization.ObjectToBytes(change); DagNetworkRpc.RunRpcOperation(targetServerName, delegate(ReplayRpcClient rpcClient) { ExTraceGlobals.DatabaseAvailabilityGroupTracer.TraceDebug <string>(0L, "SetDagNetwork sending RPC to {0}", targetServerName); return(rpcClient.SetDagNetwork(changeAsBytes)); }); }