BeginTransaction() защищенный Метод

protected BeginTransaction ( ) : int
Результат int
Пример #1
0
            private IMessageEnvelope ProcessBegin(IDictionary <string, object> metadata)
            {
                try {
                    connector.AssertNotDisposed();
                    connector.AssertAuthenticated();

                    var id = connector.BeginTransaction();
                    return(connector.CreateEnvelope(metadata, new BeginResponse(id)));
                } catch (Exception ex) {
                    // TODO: Log the error ...
                    return(CreateErrorResponse(metadata, ex));
                }
            }
            private IMessageEnvelope ProcessBegin(IDictionary <string, object> metadata)
            {
                try {
                    connector.AssertNotDisposed();
                    connector.AssertAuthenticated();

                    var id = connector.BeginTransaction();
                    return(connector.CreateEnvelope(metadata, new BeginResponse(id)));
                } catch (Exception ex) {
                    connector.Logger.Error(connector, "Error while beginning a transaction.");
                    connector.Logger.Error(connector, ex);
                    return(CreateErrorResponse(metadata, ex));
                }
            }