diff --git a/mROA.Cbor/CborSerializationToolkit.cs b/mROA.Cbor/CborSerializationToolkit.cs index bd9d63f..ba8976d 100644 --- a/mROA.Cbor/CborSerializationToolkit.cs +++ b/mROA.Cbor/CborSerializationToolkit.cs @@ -115,7 +115,7 @@ namespace mROA.Cbor return Convert.ChangeType(nonCasted, type); } - public void Inject(T dependency) + public void Inject(object dependency) { } diff --git a/mROA.Codegen/IndexProvider.cstmpl b/mROA.Codegen/IndexProvider.cstmpl index 3c8d7d7..33d053c 100644 --- a/mROA.Codegen/IndexProvider.cstmpl +++ b/mROA.Codegen/IndexProvider.cstmpl @@ -30,7 +30,7 @@ namespace }; - public void Inject(T dependency) + public void Inject(T dependency) { } diff --git a/mROA/Abstract/IInjectableModule.cs b/mROA/Abstract/IInjectableModule.cs index c516a6f..055a1a2 100644 --- a/mROA/Abstract/IInjectableModule.cs +++ b/mROA/Abstract/IInjectableModule.cs @@ -2,6 +2,6 @@ namespace mROA.Abstract { public interface IInjectableModule { - void Inject(T dependency); + void Inject(object dependency); } } \ No newline at end of file diff --git a/mROA/Implementation/Backend/BackendIdentityGenerator.cs b/mROA/Implementation/Backend/BackendIdentityGenerator.cs index bf9fcdb..5fe3fff 100644 --- a/mROA/Implementation/Backend/BackendIdentityGenerator.cs +++ b/mROA/Implementation/Backend/BackendIdentityGenerator.cs @@ -11,7 +11,7 @@ namespace mROA.Implementation.Backend return -++_currentId; } - public void Inject(T dependency) + public void Inject(object dependency) { } } diff --git a/mROA/Implementation/Backend/BasicExecutionModule.cs b/mROA/Implementation/Backend/BasicExecutionModule.cs index 0387bf1..94c3b0c 100644 --- a/mROA/Implementation/Backend/BasicExecutionModule.cs +++ b/mROA/Implementation/Backend/BasicExecutionModule.cs @@ -11,7 +11,7 @@ namespace mROA.Implementation.Backend private IMethodRepository? _methodRepo; private IContextualSerializationToolKit? _serialization; - public void Inject(T dependency) + public void Inject(object dependency) { switch (dependency) { diff --git a/mROA/Implementation/Backend/ConnectionHub.cs b/mROA/Implementation/Backend/ConnectionHub.cs index ddaf694..33efe13 100644 --- a/mROA/Implementation/Backend/ConnectionHub.cs +++ b/mROA/Implementation/Backend/ConnectionHub.cs @@ -29,7 +29,7 @@ namespace mROA.Implementation.Backend public event ConnectionHandler? OnConnected; public event DisconnectionHandler? OnDisconnected; - public void Inject(T dependency) + public void Inject(object dependency) { if (dependency is IContextualSerializationToolKit serializationToolkit) _serializationToolkit = serializationToolkit; diff --git a/mROA/Implementation/Backend/HubRequestExtractor.cs b/mROA/Implementation/Backend/HubRequestExtractor.cs index c561e40..42e0155 100644 --- a/mROA/Implementation/Backend/HubRequestExtractor.cs +++ b/mROA/Implementation/Backend/HubRequestExtractor.cs @@ -13,7 +13,7 @@ namespace mROA.Implementation.Backend private IContextualSerializationToolKit? _serializationToolkit; private IExecuteModule? _executeModule; - public void Inject(T dependency) + public void Inject(object dependency) { switch (dependency) { diff --git a/mROA/Implementation/Backend/InstanceRepository.cs b/mROA/Implementation/Backend/InstanceRepository.cs index 377e1cd..582421d 100644 --- a/mROA/Implementation/Backend/InstanceRepository.cs +++ b/mROA/Implementation/Backend/InstanceRepository.cs @@ -79,7 +79,7 @@ namespace mROA.Implementation.Backend return index == -1 ? ResisterObject(o, context) : index; } - public void Inject(T dependency) + public void Inject(object dependency) { if (dependency is IRepresentationModuleProducer moduleProducer) { diff --git a/mROA/Implementation/Backend/MultiClientInstanceRepository.cs b/mROA/Implementation/Backend/MultiClientInstanceRepository.cs index 6ced8f5..0e96476 100644 --- a/mROA/Implementation/Backend/MultiClientInstanceRepository.cs +++ b/mROA/Implementation/Backend/MultiClientInstanceRepository.cs @@ -14,7 +14,7 @@ namespace mROA.Implementation.Backend _produceRepository = produceRepository; } - public void Inject(T dependency) + public void Inject(object dependency) { } diff --git a/mROA/Implementation/Backend/NetworkGatewayModule.cs b/mROA/Implementation/Backend/NetworkGatewayModule.cs index 44a917d..604c1ba 100644 --- a/mROA/Implementation/Backend/NetworkGatewayModule.cs +++ b/mROA/Implementation/Backend/NetworkGatewayModule.cs @@ -40,7 +40,7 @@ namespace mROA.Implementation.Backend _tcpListener.Stop(); } - public void Inject(T dependency) + public void Inject(object dependency) { switch (dependency) { diff --git a/mROA/Implementation/Backend/UdpGateway.cs b/mROA/Implementation/Backend/UdpGateway.cs index 1945e0f..be7786f 100644 --- a/mROA/Implementation/Backend/UdpGateway.cs +++ b/mROA/Implementation/Backend/UdpGateway.cs @@ -23,7 +23,7 @@ namespace mROA.Implementation.Backend } - public void Inject(T dependency) + public void Inject(object dependency) { switch (dependency) { diff --git a/mROA/Implementation/CancellationRepository.cs b/mROA/Implementation/CancellationRepository.cs index 3fae6fc..82814b5 100644 --- a/mROA/Implementation/CancellationRepository.cs +++ b/mROA/Implementation/CancellationRepository.cs @@ -25,7 +25,7 @@ namespace mROA.Implementation _cancellations.Remove(id, out _); } - public void Inject(T dependency) + public void Inject(object dependency) { } } diff --git a/mROA/Implementation/ChannelInteractionModule.cs b/mROA/Implementation/ChannelInteractionModule.cs index 5d71447..f8d9606 100644 --- a/mROA/Implementation/ChannelInteractionModule.cs +++ b/mROA/Implementation/ChannelInteractionModule.cs @@ -53,7 +53,7 @@ namespace mROA.Implementation public ChannelReader UntrustedPostChanel => _outputUntrustedChannel.Reader; public Func IsConnected { get; set; } = () => false; - public void Inject(T dependency) + public void Inject(object dependency) { switch (dependency) { diff --git a/mROA/Implementation/CollectableMethodRepository.cs b/mROA/Implementation/CollectableMethodRepository.cs index b37213f..09f4db8 100644 --- a/mROA/Implementation/CollectableMethodRepository.cs +++ b/mROA/Implementation/CollectableMethodRepository.cs @@ -6,7 +6,7 @@ namespace mROA.Implementation public class CollectableMethodRepository : IMethodRepository { private List _methods = new(); - public void Inject(T dependency) + public void Inject(object dependency) { } diff --git a/mROA/Implementation/CreativeRepresentationModuleProducer.cs b/mROA/Implementation/CreativeRepresentationModuleProducer.cs index 3d8b13e..376029e 100644 --- a/mROA/Implementation/CreativeRepresentationModuleProducer.cs +++ b/mROA/Implementation/CreativeRepresentationModuleProducer.cs @@ -16,7 +16,7 @@ namespace mROA.Implementation } - public void Inject(T dependency) + public void Inject(object dependency) { if (dependency is IConnectionHub interactionModule) _hub = interactionModule; diff --git a/mROA/Implementation/EndPointContext.cs b/mROA/Implementation/EndPointContext.cs index 8f951f4..03e1b6e 100644 --- a/mROA/Implementation/EndPointContext.cs +++ b/mROA/Implementation/EndPointContext.cs @@ -14,7 +14,7 @@ namespace mROA.Implementation public int OwnerId { get; set; } - public void Inject(T dependency) + public void Inject(object dependency) { switch (dependency) { diff --git a/mROA/Implementation/Frontend/NetworkFrontendBridge.cs b/mROA/Implementation/Frontend/NetworkFrontendBridge.cs index 59184b6..1927038 100644 --- a/mROA/Implementation/Frontend/NetworkFrontendBridge.cs +++ b/mROA/Implementation/Frontend/NetworkFrontendBridge.cs @@ -24,7 +24,7 @@ namespace mROA.Implementation.Frontend _rawExtractorCancellation = new CancellationTokenSource(); } - public void Inject(T dependency) + public void Inject(object dependency) { switch (dependency) { diff --git a/mROA/Implementation/Frontend/RequestExtractor.cs b/mROA/Implementation/Frontend/RequestExtractor.cs index 437a8f7..b09077a 100644 --- a/mROA/Implementation/Frontend/RequestExtractor.cs +++ b/mROA/Implementation/Frontend/RequestExtractor.cs @@ -17,7 +17,7 @@ namespace mROA.Implementation.Frontend private IContextualSerializationToolKit? _serializationToolkit; private IEndPointContext _context; - public void Inject(T dependency) + public void Inject(object dependency) { switch (dependency) { diff --git a/mROA/Implementation/Frontend/UdpUntrustedInteraction.cs b/mROA/Implementation/Frontend/UdpUntrustedInteraction.cs index 5d4d4cf..9e2611e 100644 --- a/mROA/Implementation/Frontend/UdpUntrustedInteraction.cs +++ b/mROA/Implementation/Frontend/UdpUntrustedInteraction.cs @@ -66,7 +66,7 @@ namespace mROA.Implementation.Frontend } } - public void Inject(T dependency) + public void Inject(object dependency) { switch (dependency) { diff --git a/mROA/Implementation/RemoteInstanceRepository.cs b/mROA/Implementation/RemoteInstanceRepository.cs index a0a12b5..21e2bbd 100644 --- a/mROA/Implementation/RemoteInstanceRepository.cs +++ b/mROA/Implementation/RemoteInstanceRepository.cs @@ -75,7 +75,7 @@ namespace mROA.Implementation throw new NotSupportedException(); } - public void Inject(T dependency) + public void Inject(object dependency) { switch (dependency) { diff --git a/mROA/Implementation/RepresentationModule.cs b/mROA/Implementation/RepresentationModule.cs index 1afb9cb..c3d23ae 100644 --- a/mROA/Implementation/RepresentationModule.cs +++ b/mROA/Implementation/RepresentationModule.cs @@ -14,7 +14,7 @@ namespace mROA.Implementation private IChannelInteractionModule? _interaction; private IContextualSerializationToolKit? _serialization; - public void Inject(T dependency) + public void Inject(object dependency) { switch (dependency) { diff --git a/mROA/Implementation/StaticRepresentationModuleProducer.cs b/mROA/Implementation/StaticRepresentationModuleProducer.cs index 8aeabd4..11e9af0 100644 --- a/mROA/Implementation/StaticRepresentationModuleProducer.cs +++ b/mROA/Implementation/StaticRepresentationModuleProducer.cs @@ -14,7 +14,7 @@ namespace mROA.Implementation return _representationModule; } - public void Inject(T dependency) + public void Inject(object dependency) { if (dependency is IRepresentationModule serialisationModule) _representationModule = serialisationModule;