Пример #1
0
 private void LoadColumnInformation()
 {
     columnsInformation = new ColumnsInformation();
     instance.WithDatabase(database, (session, dbid) =>
     {
         using (var table = new Table(session, dbid, "subqueues", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.SubqueuesColumns = Api.GetColumnDictionary(session, table);
         }
         using (var table = new Table(session, dbid, "outgoing_history", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.OutgoingHistoryColumns = Api.GetColumnDictionary(session, table);
         }
         using (var table = new Table(session, dbid, "outgoing", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.OutgoingColumns = Api.GetColumnDictionary(session, table);
         }
         using (var table = new Table(session, dbid, "recovery", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.RecoveryColumns = Api.GetColumnDictionary(session, table);
         }
         using (var table = new Table(session, dbid, "transactions", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.TxsColumns = Api.GetColumnDictionary(session, table);
         }
         using (var table = new Table(session, dbid, "queues", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.QueuesColumns = Api.GetColumnDictionary(session, table);
         }
         using (var table = new Table(session, dbid, "recveived_msgs", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.RecveivedMsgsColumns = Api.GetColumnDictionary(session, table);
         }
     });
 }
Пример #2
0
        protected AbstractActions(JET_INSTANCE instance, ColumnsInformation columnsInformation, string database, Guid instanceId)
        {
            try
            {
                this.instanceId    = instanceId;
                ColumnsInformation = columnsInformation;
                session            = new Session(instance);

                transaction = new Transaction(session);
                Api.JetOpenDatabase(session, database, null, out dbid, OpenDatabaseGrbit.None);

                queues          = new Table(session, dbid, "queues", OpenTableGrbit.None);
                subqueues       = new Table(session, dbid, "subqueues", OpenTableGrbit.None);
                txs             = new Table(session, dbid, "transactions", OpenTableGrbit.None);
                recovery        = new Table(session, dbid, "recovery", OpenTableGrbit.None);
                outgoing        = new Table(session, dbid, "outgoing", OpenTableGrbit.None);
                outgoingHistory = new Table(session, dbid, "outgoing_history", OpenTableGrbit.None);
                recveivedMsgs   = new Table(session, dbid, "recveived_msgs", OpenTableGrbit.None);
            }
            catch (Exception)
            {
                Dispose();
                throw;
            }
        }
        protected AbstractActions(JET_INSTANCE instance, ColumnsInformation columnsInformation, string database, Guid instanceId)
        {
            try
            {
                this.instanceId = instanceId;
                ColumnsInformation = columnsInformation;
                session = new Session(instance);

                transaction = new Transaction(session);
                Api.JetOpenDatabase(session, database, null, out dbid, OpenDatabaseGrbit.None);

                queues = new Table(session, dbid, "queues", OpenTableGrbit.None);
                subqueues = new Table(session, dbid, "subqueues", OpenTableGrbit.None);
                txs = new Table(session, dbid, "transactions", OpenTableGrbit.None);
                recovery = new Table(session, dbid, "recovery", OpenTableGrbit.None);
                outgoing = new Table(session, dbid, "outgoing", OpenTableGrbit.None);
                outgoingHistory = new Table(session, dbid, "outgoing_history", OpenTableGrbit.None);
                recveivedMsgs = new Table(session, dbid, "recveived_msgs", OpenTableGrbit.None);
            }
            catch (Exception)
            {
                Dispose();
                throw;
            }
        }
Пример #4
0
 private void LoadColumnInformation()
 {
     columnsInformation = new ColumnsInformation();
     instance.WithDatabase(database, (session, dbid) =>
     {
         using (var table = new Table(session, dbid, "subqueues", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.SubqueuesColumns = Api.GetColumnDictionary(session, table);
         }
         using (var table = new Table(session, dbid, "outgoing_history", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.OutgoingHistoryColumns = Api.GetColumnDictionary(session, table);
         }
         using (var table = new Table(session, dbid, "outgoing", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.OutgoingColumns = Api.GetColumnDictionary(session, table);
         }
         using (var table = new Table(session, dbid, "recovery", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.RecoveryColumns = Api.GetColumnDictionary(session, table);
         }
         using (var table = new Table(session, dbid, "transactions", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.TxsColumns = Api.GetColumnDictionary(session, table);
         }
         using (var table = new Table(session, dbid, "queues", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.QueuesColumns = Api.GetColumnDictionary(session, table);
         }
         using (var table = new Table(session, dbid, "recveived_msgs", OpenTableGrbit.ReadOnly))
         {
             columnsInformation.RecveivedMsgsColumns = Api.GetColumnDictionary(session, table);
         }
     });
 }
Пример #5
0
 public SenderActions(JET_INSTANCE instance, ColumnsInformation columnsInformation, string database, Guid instanceId)
     : base(instance, columnsInformation, database, instanceId)
 {
 }
Пример #6
0
 public SenderActions(JET_INSTANCE instance, ColumnsInformation columnsInformation, string database, Guid instanceId, QueueManagerConfiguration configuration)
     : base(instance, columnsInformation, database, instanceId)
 {
     this.configuration = configuration;
 }
 public SenderActions(JET_INSTANCE instance, ColumnsInformation columnsInformation, string database, Guid instanceId, QueueManagerConfiguration configuration)
     : base(instance, columnsInformation, database, instanceId)
 {
     this.configuration = configuration;
 }
Пример #8
0
 public GlobalActions(JET_INSTANCE instance, ColumnsInformation columnsInformation, string database, Guid instanceId)
     : base(instance, columnsInformation, database, instanceId)
 {
 }