Exemple #1
0
        internal void SetState(ContinuousQueryManagerState state)
        {
            registeredQueries   = state.RegisteredQueries;
            clientRefs          = state.ClientRefs;
            addNotifications    = state.AddNotifications;
            updateNotifications = state.UpdateNotifications;
            removeNotifications = state.RemoveNotifications;

            maxAddDFAgainstCID       = state.MaxAddDFAgainstCID;
            maxUpdateDFAgainstCID    = state.MaxUpdateDFAgainstCID;
            maxRemoveDFAgainstCID    = state.MaxRemoveDFAgainstCID;
            addDFAgainstCUniqueID    = state.AddDFAgainstCUID;
            updateDFAgainstCUniqueID = state.UpdateDFAgainstCUID;
            removeDFAgainstCUniqueID = state.RemoveDFAgainstCUID;
        }
Exemple #2
0
        internal ContinuousQueryManagerState GetState()
        {
            ContinuousQueryManagerState state = new ContinuousQueryManagerState();

            state.RegisteredQueries   = registeredQueries;
            state.ClientRefs          = clientRefs;
            state.AddNotifications    = addNotifications;
            state.UpdateNotifications = updateNotifications;
            state.RemoveNotifications = removeNotifications;

            state.MaxAddDFAgainstCID    = maxAddDFAgainstCID;
            state.MaxUpdateDFAgainstCID = maxUpdateDFAgainstCID;
            state.MaxRemoveDFAgainstCID = maxRemoveDFAgainstCID;
            state.AddDFAgainstCUID      = addDFAgainstCUniqueID;
            state.UpdateDFAgainstCUID   = updateDFAgainstCUniqueID;
            state.RemoveDFAgainstCUID   = removeDFAgainstCUniqueID;

            return(state);
        }