public void OnDependenciesResolved() { sessionManager = new SessionMannager(config.MaxConcurrentWebSessions, config.MaxWebRequestsPerMinutePerSession); dependency.Register(sessionManager); dataParser = dependency.Create <WebDataParser>(); }
void UpdateSquadXml() { var s = dependency.Create <ArmaSquadXml>(); s.UpdateArma3SquadXml(); }
/// <summary> /// Creates new instance and then resolves it's dependencies. /// </summary> /// <typeparam name="T"></typeparam> /// <returns></returns> public static T Create <T>(this IDependencyManager me, params object[] args) { return((T)me.Create(typeof(T), args)); }