예제 #1
0
 protected async virtual Task OnGetCmdStandardOutputAsync(StreamReader sr)
 {
     GetCmdStandardOutput?.Invoke(this, await sr.ReadToEndAsync());
 }
예제 #2
0
 protected virtual void OnGetCmdStandardOutput(StreamReader sr)
 {
     GetCmdStandardOutput?.Invoke(this, sr.ReadToEndAsync().GetAwaiter().GetResult());
 }