Exemplo n.º 1
0
        /// <nodoc />
        public Task <PluginResponseResult <bool> > StartAsync()
        {
            var res = PluginClient.StartAsync();

            m_startCompletionTaskSoure.TrySetResult(Unit.Void);
            return(res);
        }
Exemplo n.º 2
0
        /// <nodoc />
        public void Dispose()
        {
            if (!m_disposed)
            {
                PluginClient.Dispose();

                if (PluginProcess != null)
                {
                    if (!PluginProcess.HasExited)
                    {
                        Kill();
                    }
                    PluginProcess.Exited -= HandleProcessExisted;
                    PluginProcess.Dispose();
                }
                else if (PluginTask != null && !PluginTask.IsCompleted)
                {
                    PluginTaskCancellationTokenSource.Cancel();
                }

                m_disposed = true;
            }
        }
Exemplo n.º 3
0
 /// <nodoc />
 public Task <PluginResponseResult <LogParseResult> > ParseLogAsync(string message, bool isErrorOutput)
 {
     return(PluginClient.ParseLogAsync(message, isErrorOutput));
 }
Exemplo n.º 4
0
 /// <nodoc />
 public Task <PluginResponseResult <List <PluginMessageType> > > GetSupportedPluginMessageType()
 {
     return(PluginClient.GetSupportedPluginMessageType());
 }
Exemplo n.º 5
0
 /// <nodoc />
 public Task <PluginResponseResult <bool> > StopAsync()
 {
     return(PluginClient.StopAsync());
 }