Exemplo n.º 1
0
 protected override SourceResponse HandleSourceRequest(SourceArguments arguments)
 {
     try
     {
         if (session == null)
         {
             throw new InvalidOperationException();
         }
         return(session.GetSource(arguments));
     }
     catch (Exception ex)
     {
         Log(ex.Message, LogCategory.DebugAdapterOutput);
         throw new ProtocolException(ex.Message, ex);
     }
 }
Exemplo n.º 2
0
 public Task <SourceResponse> Handle(SourceArguments request, CancellationToken cancellationToken)
 {
     // TODO: Implement this message.  For now, doesn't seem to
     // be a problem that it's missing.
     return(Task.FromResult(new SourceResponse()));
 }
Exemplo n.º 3
0
 protected override SourceResponse HandleSourceRequest(SourceArguments arguments)
 {
     return(this.ScriptManager.HandleSourceRequest(arguments));
 }
Exemplo n.º 4
0
 protected override SourceResponse HandleSourceRequest(SourceArguments arguments)
 {
     throw new ProtocolException("Not Implemented");
 }
Exemplo n.º 5
0
 internal SourceResponse HandleSourceRequest(SourceArguments arguments)
 {
     return(new SourceResponse("For now all source requests return this line of 'code'."));
 }