Esempio n. 1
0
        /// <summary>
        /// Create an <see cref="IResourceProvider" /> that provides
        /// resources necessary for manipulating the underlying tracking store.
        /// </summary>
        /// <remarks>
        /// The resource provider is created once upon Start of the
        /// tracking service.
        /// </remarks>
        protected override IResourceProvider CreateResourceProvider()
        {
            if (workBatchService != null)
            {
                return(workBatchService.CreateResourceProvider(connectionStringSettings));
            }

            return(AdoResourceProviderFactory.Create(connectionStringSettings));
        }
Esempio n. 2
0
 /// <summary>
 /// Create an <see cref="IResourceProvider" /> that provides
 /// resources necessary for manipulating the underlying tracking store.
 /// </summary>
 /// <remarks>
 /// The resource provider is created once upon Start of the
 /// tracking service.
 /// </remarks>
 protected override IResourceProvider CreateResourceProvider()
 {
     return(AdoResourceProviderFactory.Create(_connectionStringSettings));
 }
Esempio n. 3
0
 public AdoResourceProviderWrapper(AdoWorkBatchService workBatchService, ConnectionStringSettings connectionStringSettings)
 {
     this.workBatchService      = workBatchService;
     this.innerResourceProvider = AdoResourceProviderFactory.Create(connectionStringSettings);
 }