示例#1
0
        internal static void MountDatabaseDirect(AmServerName serverName, AmServerName lastMountedServerName, Guid dbGuid, MountFlags storeFlags, AmMountFlags amFlags, AmDbActionCode actionCode)
        {
            AmFaultInject.GenerateMapiExceptionIfRequired(dbGuid, serverName);
            AmMountArg mountArg = new AmMountArg((int)storeFlags, (int)amFlags, lastMountedServerName.Fqdn, (int)actionCode);

            Dependencies.AmRpcClientWrapper.MountDatabaseDirectEx(serverName.Fqdn, dbGuid, mountArg);
        }
示例#2
0
        internal static void DismountDatabaseDirect(AmServerName serverName, Guid dbGuid, UnmountFlags flags, AmDbActionCode actionCode)
        {
            AmFaultInject.GenerateMapiExceptionIfRequired(dbGuid, serverName);
            AmDismountArg dismountArg = new AmDismountArg((int)flags, (int)actionCode);

            Dependencies.AmRpcClientWrapper.DismountDatabaseDirect(serverName.Fqdn, dbGuid, dismountArg);
        }
示例#3
0
 // Token: 0x060001C5 RID: 453 RVA: 0x0000B894 File Offset: 0x00009A94
 private void RunOperation(AmDbOperation opr)
 {
     AmTrace.Debug("Running database operation: {0}", new object[]
     {
         opr
     });
     AmFaultInject.SleepIfRequired(opr.Database.Guid, AmSleepTag.GenericDbOperationProcessingDelay);
     opr.Run();
     if (opr.LastException != null)
     {
         AmTrace.Error("Error from database operation {0}\n{1}", new object[]
         {
             opr,
             opr.LastException
         });
         return;
     }
     AmTrace.Debug("Database operation finished: {0}", new object[]
     {
         opr
     });
 }