From 3a205b0b84b96db5506f5dd92d5604744ab87902 Mon Sep 17 00:00:00 2001 From: yangxiaodong Date: Wed, 19 Jul 2017 15:46:29 +0800 Subject: [PATCH] update GetService to GetRequiredService --- src/DotNetCore.CAP/Processor/IProcessingServer.Cap.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/DotNetCore.CAP/Processor/IProcessingServer.Cap.cs b/src/DotNetCore.CAP/Processor/IProcessingServer.Cap.cs index 242eff7..5843382 100644 --- a/src/DotNetCore.CAP/Processor/IProcessingServer.Cap.cs +++ b/src/DotNetCore.CAP/Processor/IProcessingServer.Cap.cs @@ -110,15 +110,15 @@ namespace DotNetCore.CAP.Processor var returnedProcessors = new List(); for (int i = 0; i < processorCount; i++) { - var messageProcessors = _provider.GetService(); + var messageProcessors = _provider.GetRequiredService(); _messageDispatchers.Add(messageProcessors); } returnedProcessors.AddRange(_messageDispatchers); - returnedProcessors.Add(_provider.GetService()); - returnedProcessors.Add(_provider.GetService()); + returnedProcessors.Add(_provider.GetRequiredService()); + returnedProcessors.Add(_provider.GetRequiredService()); - returnedProcessors.Add(_provider.GetService()); + returnedProcessors.Add(_provider.GetRequiredService()); return returnedProcessors.ToArray(); }