Example #1
0
        public PersistenceConnection ConnectThread()
        {
            if (ThreadConnection != null)
            {
                throw new InvalidOperationException("Cannot connect the current thread to this store because a different connection is still active on this thread.");
            }

            PersistenceConnection connection = this.Connect();

            ThreadConnection = connection;

            return(connection);
        }
Example #2
0
 /// <summary>
 /// Gets an adapter that can be used to execute and interact with the results of this command.
 /// </summary>
 public abstract PersistenceAdapter GetAdapter(PersistenceConnection connection);
        //public Action InboundRowReceived { get; set; }

        protected PersistenceAdapter(PersistenceConnection connection, PersistenceCommand command)
        {
            this.Connection = connection;
            this.Command    = command;
        }