/// <summary> /// Creates an instance of the <see cref="GetInstanceHandler" /> class /// </summary> /// <param name="logger"></param> public GetInstanceHandler(ILogger <GetInstanceHandler> logger) : base(logger) { if (ApplicationManager.ApplicationConfiguration.GetSection("UseLiveClient").Get <bool>()) { ClientWrapper = new StorageClientWrapper(_logger); } }
/// <summary> /// Creates new ResourcesClient instance /// </summary> /// <param name="resourceManagementClient">The IResourceManagementClient instance</param> /// <param name="storageClientWrapper">The IStorageClientWrapper instance</param> /// <param name="galleryTemplatesClient">The IGalleryClient instance</param> /// <param name="eventsClient">The IEventsClient instance</param> public ResourcesClient( IResourceManagementClient resourceManagementClient, IStorageClientWrapper storageClientWrapper, GalleryTemplatesClient galleryTemplatesClient, IEventsClient eventsClient) { ResourceManagementClient = resourceManagementClient; StorageClientWrapper = storageClientWrapper; GalleryTemplatesClient = galleryTemplatesClient; EventsClient = eventsClient; }
/// <summary> /// Initializes a new instance of the <see cref="GetDocumentHandler" /> class. /// </summary> /// <param name="logger">Reference to the common logger that the application shall used to log log info and error information public UploadData(ILogger <UploadData> logger) : base(logger) { if (ApplicationManager.ApplicationConfiguration.GetSection("UseLiveClient").Get <bool>()) { ClientWrapper = new StorageClientWrapper(_logger); } else { ClientWrapper = new StorageClientFileWrapper(_logger); } }
/// <summary> /// Initializes a new instance of the <see cref="GetDataHandler" /> class. /// </summary> /// <param name="logger">Reference to the common logger that the application shall used to log log info and error information</param> public GetDataHandler(ILogger <GetDataHandler> logger) : base(logger) { if (ApplicationManager.ApplicationConfiguration.GetSection("UseLiveClient").Get <bool>()) { _clientWrapper = new StorageClientWrapper(_logger); } else { _clientWrapper = new StorageClientFileWrapper(_logger); } }
public GoogleCloudStorageService(IOptionsSnapshot <GoogleCloudSettings> googleCloudSettings, IStorageClientWrapper storageClientWrapper) { this.googleCloudSettings = googleCloudSettings.Value; this.storageClient = storageClientWrapper.GetStorageClient(googleCloudSettings.Value); }