예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BaseTableStorage2"/> class.
        /// </summary>
        /// <param name="options">Value for <see cref="Options"/>.</param>
        /// <param name="tableName">Table name suffix. Along with prefix is used to build table name.</param>
        protected BaseTableStorage2(ITableStorageOptions options, string tableName)
        {
            this.Options = options;
            var client = CloudStorageAccount
                         .Parse(options.ConnectionString)
                         .CreateCloudTableClient();

            var tableFullName  = options.TableNamePrefix + tableName;
            var tableReference = client.GetTableReference(tableFullName);

            TableProxy = new CloudTableProxy(tableReference, ensureTableExists: true);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="TransactionTableStore"/> class.
 /// </summary>
 /// <param name="options">Table storage options.</param>
 public TransactionTableStore(ITableStorageOptions options)
     : base(options, "TransactionStore")
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StateEventTableStore"/> class.
 /// </summary>
 /// <param name="options">Table storage options.</param>
 public StateEventTableStore(ITableStorageOptions options)
     : base(options, "StateEventStore")
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ImmutableQueryModelTableStorage2{TQueryModel}"/> class.
 /// </summary>
 /// <param name="options">Table storage options.</param>
 public ImmutableQueryModelTableStorage2(ITableStorageOptions options)
     : base(options, typeof(TQueryModel).Name)
 {
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IntegrationEventTableStore"/> class.
 /// </summary>
 /// <param name="options">Table storage options.</param>
 public IntegrationEventTableStore(ITableStorageOptions options)
     : base(options, "IntegrationEventStore")
 {
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CommandTableStore"/> class.
 /// </summary>
 /// <param name="options">Table storage options.</param>
 public CommandTableStore(ITableStorageOptions options)
     : base(options, "CommandStore")
 {
 }