Ejemplo n.º 1
0
        /// <summary>
        /// Initializes new instance of <see cref="DocumentClientMaintainer"/>
        /// </summary>
        /// <param name="serviceEndpoint"></param>
        /// <param name="refreshKey"></param>
        /// <param name="refershIntervalSeconds"></param>
        public DocumentClientMaintainer(Uri serviceEndpoint, RefreshKey refreshKey, int refershIntervalSeconds = 5)
            : base(refreshKey, refershIntervalSeconds)
        {
            Guard.ArgumentIsNotNull(nameof(serviceEndpoint), serviceEndpoint);

            _serviceEndpoint = serviceEndpoint;
        }
Ejemplo n.º 2
0
        protected override CloudTableClient GetFreshClient()
        {
            var cs = CloudStorageAccount.Parse(RefreshKey.RetrieveKey());

            return(cs.CreateCloudTableClient());
        }
Ejemplo n.º 3
0
 public TableClientMaintainer(RefreshKey refreshKey, int refreshIntervalInSeconds)
     : base(refreshKey, refreshIntervalInSeconds)
 {
 }
Ejemplo n.º 4
0
 public QueueClientMaintainer(RefreshKey refreshKey, int refreshIntervalInSeconds = 5)
     : base(refreshKey, refreshIntervalInSeconds)
 {
 }
Ejemplo n.º 5
0
 protected override DocumentClient GetFreshClient()
 {
     return(new DocumentClient(_serviceEndpoint, RefreshKey.RetrieveSecureKey()));
 }