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

            dataParser = dependency.Create <WebDataParser>();
        }
示例#2
0
        void UpdateSquadXml()
        {
            var s = dependency.Create <ArmaSquadXml>();

            s.UpdateArma3SquadXml();
        }
示例#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));
 }