Beispiel #1
0
        public void Save(TransportQueueLogBatch serverQueueData)
        {
            if (serverQueueData == null)
            {
                throw new ArgumentNullException("serverQueueData");
            }
            TransportQueueSession.CheckInputType(serverQueueData);
            TransportQueueLogSaveDataSet instance = TransportQueueLogSaveDataSet.CreateDataSet(serverQueueData);

            this.dataProviderMtrt.Save(instance);
        }
Beispiel #2
0
        public static TransportQueueLogSaveDataSet CreateDataSet(TransportQueueLogBatch batch)
        {
            TransportQueueLogSaveDataSet transportQueueLogSaveDataSet = new TransportQueueLogSaveDataSet();

            transportQueueLogSaveDataSet[TransportQueueLogSaveDataSetSchema.ForestIdProperty]                = batch.ForestId;
            transportQueueLogSaveDataSet[TransportQueueLogSaveDataSetSchema.ServerIdProperty]                = batch.ServerId;
            transportQueueLogSaveDataSet[TransportQueueLogSaveDataSetSchema.SnapshotDatetimeProperty]        = batch.SnapshotDatetime;
            transportQueueLogSaveDataSet[TransportQueueLogSaveDataSetSchema.ServerPropertiesTableProperty]   = TransportQueueLogSaveDataSet.GetServerProperties(batch);
            transportQueueLogSaveDataSet[TransportQueueLogSaveDataSetSchema.QueueLogPropertiesTableProperty] = TransportQueueLogSaveDataSet.GetQueueLogProperties(batch);
            return(transportQueueLogSaveDataSet);
        }