lib/mongo/operation/shared/executable.rb
# Returns a Protocol::Message or nil as reply.
Returns a Protocol::Message or nil as reply.
Returns a Protocol :: Message or nil as reply .
def dispatch_message(connection, context, options = {})
        message = build_message(connection, context)
        message = message.maybe_encrypt(connection, context)
        reply = connection.dispatch([ message ], context, options)
        [reply, connection.description]
      end
def dispatch_message ( connection , context , options = { } ) message = build_message ( connection , context ) message = message . maybe_encrypt ( connection , context ) reply = connection . dispatch ( [ message ] , context , options ) [ reply , connection . description ] end
Returns a Protocol::Message or nil as reply.
Returns a Protocol :: Message or nil as reply .
connection
context
options