Exemplo n.º 1
0
 public ContentSegmentContext(TokenExecutor tokenExecutor, IClientScriptRegistry clientScriptRegistry, HttpContextBase httpContext, Customer customer)
 {
     TokenExecutor        = tokenExecutor;
     ClientScriptRegistry = clientScriptRegistry;
     HttpContext          = httpContext;
     Customer             = customer;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Добавить элемент вызова в стек
 /// </summary>
 /// <param name="executor">Токен действия</param>
 public void Push(TokenExecutor executor)
 {
     if (Contains(executor.OffsetToken))
     {
         throw new TrackModelExeption();
     }
     tokens.Add(executor.OffsetToken);
     commands.Push(executor);
 }
Exemplo n.º 3
0
 public Parser()
 {
     DefaultTokenExecutor = DependencyResolver.Current.GetService <TokenExecutor>();
     ClientScriptRegistry = DependencyResolver.Current.GetService <IClientScriptRegistry>();
 }
Exemplo n.º 4
0
 public Parser()
 {
     TokenExecutor = DependencyResolver.Current.GetService <TokenExecutor>();
 }