Example #1
0
        public async Task <IDictionary <string, object> > Do(
            IDictionary <string, object> stepParameters,
            IDictionary <string, object> pluginParameters)
        {
            try
            {
                Log.Information($"Create connections...");
                if (SignalRUtils.isUsingInternalApp(stepParameters))
                {
                    await SignalRUtils.StartInternalAppServer(stepParameters, pluginParameters);

                    // rewrite the url
                    stepParameters[SignalRConstants.HubUrls] = SignalRConstants.LocalhostUrl;
                }

                SignalRUtils.SlaveCreateConnection(stepParameters, pluginParameters, ClientType.AspNetCore);
                return(null);
            }
            catch (Exception ex)
            {
                var message = $"Fail to create connections: {ex}";
                Log.Error(message);
                throw;
            }
        }