Exemplo n.º 1
0
        public ActionBar()
        {
            this.SubscriptionRequests = ServiceLocator.Current.GetService <SubscriptionRequests>();
            this.SubscriptionCommands = ServiceLocator.Current.GetService <SubscriptionCommands>();

            InitializeComponent();
        }
 public SubscriptionPersister(Func <DbConnection> connectionBuilder, string tablePrefix, SqlVariant sqlVariant, string schema, TimeSpan?cacheFor)
 {
     this.connectionBuilder = connectionBuilder;
     this.cacheFor          = cacheFor;
     subscriptionCommands   = SubscriptionCommandBuilder.Build(sqlVariant, tablePrefix, schema);
     commandBuilder         = new CommandBuilder(sqlVariant);
     if (cacheFor != null)
     {
         Cache = new ConcurrentDictionary <string, CacheItem>();
     }
 }