Esempio n. 1
0
 internal ResultResponse(ResponseFrame frame)
     : base(frame)
 {
     Kind = (ResultResponseKind) BEBinaryReader.ReadInt32();
     switch (Kind)
     {
         case ResultResponseKind.Void:
             Output = new OutputVoid(TraceID);
             break;
         case ResultResponseKind.Rows:
             Output = new OutputRows(BEBinaryReader, frame.RawStream is BufferedProtoBuf, TraceID);
             break;
         case ResultResponseKind.SetKeyspace:
             Output = new OutputSetKeyspace(BEBinaryReader.ReadString());
             break;
         case ResultResponseKind.Prepared:
             Output = new OutputPrepared(BEBinaryReader);
             break;
         case ResultResponseKind.SchemaChange:
             Output = new OutputSchemaChange(BEBinaryReader, TraceID);
             break;
         default:
             throw new DriverInternalError("Unknown Event Type");
     }
 }
        internal ResultResponse(ResponseFrame frame) : base(frame)
        {
            Kind = (ResultResponseKind)BEBinaryReader.ReadInt32();
            switch (Kind)
            {
            case ResultResponseKind.Void:
                Output = new OutputVoid(TraceID);
                break;

            case ResultResponseKind.Rows:
                Output = new OutputRows(BEBinaryReader, frame.RawStream is BufferedProtoBuf, TraceID);
                break;

            case ResultResponseKind.SetKeyspace:
                Output = new OutputSetKeyspace(BEBinaryReader.ReadString());
                break;

            case ResultResponseKind.Prepared:
                Output = new OutputPrepared(BEBinaryReader);
                break;

            case ResultResponseKind.SchemaChange:
                Output = new OutputSchemaChange(BEBinaryReader, TraceID);
                break;

            default:
                throw new DriverInternalError("Unknown ResultResponseKind Type");
            }
        }
Esempio n. 3
0
 protected ResultResponse(ResultResponseKind kind)
 {
     Kind = kind;
 }
Esempio n. 4
0
 internal FakeResultResponse(ResultResponseKind kind) : base(kind, Mock.Of <IOutput>())
 {
 }
Esempio n. 5
0
 protected ResultResponse(ResultResponseKind kind, IOutput output)
 {
     Kind   = kind;
     Output = output;
 }
Esempio n. 6
0
 public ProxyResultResponse(ResultResponseKind kind, IOutput output) : base(kind, output)
 {
 }
Esempio n. 7
0
 public ProxyResultResponse(ResultResponseKind kind) : base(kind, Mock.Of <IOutput>())
 {
 }