Esempio n. 1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ServiceClientContentStore"/> class.
 /// </summary>
 public ServiceClientContentStore(
     ILogger logger,
     IAbsFileSystem fileSystem,
     ServiceClientContentStoreConfiguration configuration)
 {
     Contract.Requires(logger != null);
     Contract.Requires(fileSystem != null);
     Contract.Requires(configuration != null);
     Logger        = logger;
     FileSystem    = fileSystem;
     Configuration = configuration;
 }
Esempio n. 2
0
        /// <summary>
        ///     Initializes a new instance of the <see cref="ServiceClientContentStore"/> class.
        /// </summary>
        public ServiceClientContentStore(
            ILogger logger,
            IAbsFileSystem fileSystem,
            ServiceClientContentStoreConfiguration configuration)
        {
            Contract.Requires(logger != null);
            Contract.Requires(fileSystem != null);
            Contract.Requires(configuration != null);

            Logger        = logger;
            FileSystem    = fileSystem;
            Configuration = configuration;

            // We need to be able to initialize the gRPC environment on the client side. This MUST happen before our
            // first gRPC connection is created, due to the possibility that we may set options that can only be set at
            // that point in time. Hence, we do so here, which is the main entrypoint for most of our clients.
            GrpcEnvironment.Initialize(Logger, Configuration.GrpcEnvironmentOptions, overwriteSafeOptions: true);
        }