public void OnDependenciesResolved()
        {
            sessionManager = new SessionMannager(config.MaxConcurrentWebSessions, config.MaxWebRequestsPerMinutePerSession);
            dependency.Register(sessionManager);

            dataParser = dependency.Create <WebDataParser>();
        }
Ejemplo n.º 2
0
        void UpdateSquadXml()
        {
            var s = dependency.Create <ArmaSquadXml>();

            s.UpdateArma3SquadXml();
        }
Ejemplo n.º 3
0
 /// <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));
 }