// Token: 0x060000E8 RID: 232 RVA: 0x000058FC File Offset: 0x00003AFC
        protected static void TrackAdminRpcCalls(DatabaseInfo databaseInfo, string clientType, Action <ExRpcAdmin> rpcDelegate)
        {
            ExRpcAdmin exRpcAdmin = null;
            Stopwatch  stopwatch  = Stopwatch.StartNew();

            try
            {
                exRpcAdmin = ExRpcAdmin.Create(clientType, null, null, null, null);
                rpcDelegate(exRpcAdmin);
            }
            finally
            {
                stopwatch.Stop();
                if (exRpcAdmin != null)
                {
                    IRPCLatencyProvider mdbHealthMonitor = TimeBasedAssistant.GetMdbHealthMonitor(databaseInfo.Guid);
                    if (mdbHealthMonitor != null)
                    {
                        PerRPCPerformanceStatistics storePerRPCStats = exRpcAdmin.GetStorePerRPCStats();
                        mdbHealthMonitor.Update((int)storePerRPCStats.avgDbLatency, (storePerRPCStats.validVersion >= 2U) ? storePerRPCStats.totalDbOperations : 100U);
                    }
                    exRpcAdmin.Dispose();
                    exRpcAdmin = null;
                }
                ActivityContext.AddOperation(ActivityOperationType.ExRpcAdmin, databaseInfo.DatabaseName, (float)stopwatch.Elapsed.TotalMilliseconds, 1);
            }
        }