Remove T from Injectable module
This commit is contained in:
@@ -115,7 +115,7 @@ namespace mROA.Cbor
|
|||||||
return Convert.ChangeType(nonCasted, type);
|
return Convert.ChangeType(nonCasted, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ namespace <!L namespace>
|
|||||||
<!D>
|
<!D>
|
||||||
};
|
};
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(T dependency)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ namespace mROA.Abstract
|
|||||||
{
|
{
|
||||||
public interface IInjectableModule
|
public interface IInjectableModule
|
||||||
{
|
{
|
||||||
void Inject<T>(T dependency);
|
void Inject(object dependency);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,7 +11,7 @@ namespace mROA.Implementation.Backend
|
|||||||
return -++_currentId;
|
return -++_currentId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace mROA.Implementation.Backend
|
|||||||
private IMethodRepository? _methodRepo;
|
private IMethodRepository? _methodRepo;
|
||||||
private IContextualSerializationToolKit? _serialization;
|
private IContextualSerializationToolKit? _serialization;
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
switch (dependency)
|
switch (dependency)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ namespace mROA.Implementation.Backend
|
|||||||
public event ConnectionHandler? OnConnected;
|
public event ConnectionHandler? OnConnected;
|
||||||
public event DisconnectionHandler? OnDisconnected;
|
public event DisconnectionHandler? OnDisconnected;
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
if (dependency is IContextualSerializationToolKit serializationToolkit)
|
if (dependency is IContextualSerializationToolKit serializationToolkit)
|
||||||
_serializationToolkit = serializationToolkit;
|
_serializationToolkit = serializationToolkit;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace mROA.Implementation.Backend
|
|||||||
private IContextualSerializationToolKit? _serializationToolkit;
|
private IContextualSerializationToolKit? _serializationToolkit;
|
||||||
private IExecuteModule? _executeModule;
|
private IExecuteModule? _executeModule;
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
switch (dependency)
|
switch (dependency)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ namespace mROA.Implementation.Backend
|
|||||||
return index == -1 ? ResisterObject<T>(o, context) : index;
|
return index == -1 ? ResisterObject<T>(o, context) : index;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
if (dependency is IRepresentationModuleProducer moduleProducer)
|
if (dependency is IRepresentationModuleProducer moduleProducer)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace mROA.Implementation.Backend
|
|||||||
_produceRepository = produceRepository;
|
_produceRepository = produceRepository;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ namespace mROA.Implementation.Backend
|
|||||||
_tcpListener.Stop();
|
_tcpListener.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
switch (dependency)
|
switch (dependency)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace mROA.Implementation.Backend
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
switch (dependency)
|
switch (dependency)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ namespace mROA.Implementation
|
|||||||
_cancellations.Remove(id, out _);
|
_cancellations.Remove(id, out _);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ namespace mROA.Implementation
|
|||||||
public ChannelReader<NetworkMessageHeader> UntrustedPostChanel => _outputUntrustedChannel.Reader;
|
public ChannelReader<NetworkMessageHeader> UntrustedPostChanel => _outputUntrustedChannel.Reader;
|
||||||
public Func<bool> IsConnected { get; set; } = () => false;
|
public Func<bool> IsConnected { get; set; } = () => false;
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
switch (dependency)
|
switch (dependency)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace mROA.Implementation
|
|||||||
public class CollectableMethodRepository : IMethodRepository
|
public class CollectableMethodRepository : IMethodRepository
|
||||||
{
|
{
|
||||||
private List<IMethodInvoker> _methods = new();
|
private List<IMethodInvoker> _methods = new();
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ namespace mROA.Implementation
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
if (dependency is IConnectionHub interactionModule)
|
if (dependency is IConnectionHub interactionModule)
|
||||||
_hub = interactionModule;
|
_hub = interactionModule;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace mROA.Implementation
|
|||||||
public int OwnerId { get; set; }
|
public int OwnerId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
switch (dependency)
|
switch (dependency)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace mROA.Implementation.Frontend
|
|||||||
_rawExtractorCancellation = new CancellationTokenSource();
|
_rawExtractorCancellation = new CancellationTokenSource();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
switch (dependency)
|
switch (dependency)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace mROA.Implementation.Frontend
|
|||||||
private IContextualSerializationToolKit? _serializationToolkit;
|
private IContextualSerializationToolKit? _serializationToolkit;
|
||||||
private IEndPointContext _context;
|
private IEndPointContext _context;
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
switch (dependency)
|
switch (dependency)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ namespace mROA.Implementation.Frontend
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
switch (dependency)
|
switch (dependency)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ namespace mROA.Implementation
|
|||||||
throw new NotSupportedException();
|
throw new NotSupportedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
switch (dependency)
|
switch (dependency)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace mROA.Implementation
|
|||||||
private IChannelInteractionModule? _interaction;
|
private IChannelInteractionModule? _interaction;
|
||||||
private IContextualSerializationToolKit? _serialization;
|
private IContextualSerializationToolKit? _serialization;
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
switch (dependency)
|
switch (dependency)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace mROA.Implementation
|
|||||||
return _representationModule;
|
return _representationModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Inject<T>(T dependency)
|
public void Inject(object dependency)
|
||||||
{
|
{
|
||||||
if (dependency is IRepresentationModule serialisationModule)
|
if (dependency is IRepresentationModule serialisationModule)
|
||||||
_representationModule = serialisationModule;
|
_representationModule = serialisationModule;
|
||||||
|
|||||||
Reference in New Issue
Block a user