public GuestBookDataSource() { context = new GuestBookDataContext(storageAccount.TableEndpoint.AbsoluteUri, storageAccount.Credentials) { RetryPolicy = RetryPolicies.Retry(3, TimeSpan.FromSeconds(1)) }; }
public GuestBookDataSource() { context = new GuestBookDataContext(storageAccount.CreateCloudTableClient()); // TODO: Inject the instance using constructor injection }
public GuestBookDataSource() { this.context = new GuestBookDataContext(storageAccount.CreateCloudTableClient()); }
public GuestBookDataSource() { this.context = new GuestBookDataContext(storageAccount.TableEndpoint.AbsoluteUri, storageAccount.Credentials); this.context.RetryPolicy = RetryPolicies.Retry(3, TimeSpan.FromSeconds(1)); }