12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- using System;
- using System.Collections.Generic;
- namespace IFramework.Inject
- {
-
-
-
- public interface IInjectModule
- {
-
-
-
- void Clear();
-
-
-
-
- void Inject(object obj);
-
-
-
- void InjectInstances();
-
-
-
-
-
- void Subscribe<Type>(string name = null);
-
-
-
-
-
-
- void Subscribe<BaseType, Type>(string name = null) where Type : BaseType;
-
-
-
-
-
-
- void Subscribe(Type source, Type target, string name = null);
-
-
-
-
-
-
-
- void SubscribeInstance<Type>(Type instance, string name = null, bool inject = true) where Type : class;
-
-
-
-
-
-
-
-
- void SubscribeInstance(Type baseType, object instance, string name = null, bool inject = true);
-
-
-
-
-
-
-
- T GetValue<T>(string name = null, params object[] args) where T : class;
-
-
-
-
-
-
-
- object GetValue(Type baseType, string name = null, params object[] constructorArgs);
-
-
-
-
-
- IEnumerable<object> GetValues(Type type);
-
-
-
-
-
- IEnumerable<Type> GetValues<Type>();
- }
- }
|