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

            m_startCompletionTaskSoure.TrySetResult(Unit.Void);
            return(res);
        }
Esempio 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;
            }
        }
Esempio n. 3
0
 /// <nodoc />
 public Task <PluginResponseResult <LogParseResult> > ParseLogAsync(string message, bool isErrorOutput)
 {
     return(PluginClient.ParseLogAsync(message, isErrorOutput));
 }
Esempio n. 4
0
 /// <nodoc />
 public Task <PluginResponseResult <List <PluginMessageType> > > GetSupportedPluginMessageType()
 {
     return(PluginClient.GetSupportedPluginMessageType());
 }
Esempio n. 5
0
 /// <nodoc />
 public Task <PluginResponseResult <bool> > StopAsync()
 {
     return(PluginClient.StopAsync());
 }