How to fetch AWS S3 DeleteMarkers in C# SDK? - c#

I have a versioning-enabled S3 bucket.
I'm accessing it via the AWSSDK.S3 Nuget package.
I can't see anyway to acquire information about deleted versions of files, or versions of files for which the latest record is a Delete Marker?
Is it possible to do this using that SDK?
What about with some other SDK?

Ah. Found it - it's the Request/Response/Method collection called ListVersions.

Related

How can I get service principal properties using Azure SDK for .Net

I need to get application display name by service principal id in UWP C# project. I found sample Getting started on managing service principals using C#, but this sample based on Microsoft.Azure.Management.Fluent, Microsoft.Azure.Management.Graph.RBAC.Fluent and Microsoft.Azure.Management.ResourceManager.Fluent, which are deprecated. Any other ways to get appId (except http request) I don't know.
Before installing the NuGet packages, use the latest .Net framework in order to resolve few of the deprecated issues.
*For these deprecated packages
Microsoft.Azure.Management.Fluent
Microsoft.Azure.Management.Graph.RBAC.Fluent
Microsoft.Azure.Management.ResourceManager.Fluent
Microsoft has provided alternate packages and the dependencies for the packages.
Use the below highlighted alternate packages
For Microsoft.Azure.Management.Fluent and Microsoft.Azure.Management.ResourceManager.Fluent use Azure.ResourceManager
Azure.ResourceManager
Azure.ResourceManager
And the below package is not deprecated Microsoft.Azure.Management.Graph.RBAC.Fluent

Downloading GeckoFX older versions since Bitbucket repo turned private

Since the bitbucket repo. of GeckoFX turned private, I am unable to download the older version of
GeckoFX say 37.0.1 .
Is there any source or way to do it to get GeckoFX dlls from the Browser itself or I will stuck on this catch22 thing.
I really need to implement it an only with that version it is possible the thing
I need to achieve. I need to add a plugin built on XPCOM which i not a part of latest Firefox libs.
PS. I have searched zillions of articles and stckoverflow links but could not find any argument supporting my problem.
I don't think a 37.0.1 version ever existed but there was v33 + v45.
Softwareheritage has archived all the repos:
You can find the geckofx stuff here including the downloadable zip files.
The official source can be found here. Note this source contains tags for all the versions, so if you wanted to build v33, you would just update to the tag v33.0-0.10
Apart from Softwareheritage, you find some older pre-packed versions on nuget.
So, while you are able to fetch a earlier release of a specific package for your project using the package manager console in Visual Studio:
Install-Package GeckoFX -Version <press tab key for autocomplete> [*or a different package name]
you will probably not get far. Most of the GeckoFX releases on nuget are targeting more recent version (like v60, v45). But if you look a bit closer you will also find packages that are based on older releases like v33 (for winforms, and core).

Amazon AWSClientFactory does not exists

I created an empty .Net Core application and installed nuget packages for Both Amazon.Core and Amazon.S3.
Then I tried to use S3 to get an object but I'm stuck at the very first moment... Amazon.AWSClientFactory is nowhere to be found inside the assembly. Even with dotPeek I tried to search this factory method but I couldn't find it. Even the sample code from Amazon doesn't work.
Where I supposed to find this class ?
Amazon.Core and Amazon.S3 are part of the AWS SDK for .NET v3. Per the AWS SDK for .NET Version 3 Migration Guide:
Change: AWSClientFactory is removed
Description: Use service client constructors instead of the AWSClientFactory
Or in other words, use IAmazonS3 and AmazonS3Client found in the Amazon.S3 nuget package:
using (IAmazonS3 client = new AmazonS3Client())
{
// do stuff
}
Further Reading
AWS Documentation - Get an Object Using the AWS SDK for .NET
AWS Documentation - AmazonS3Client
Anthony is right. The AWSClientFactory is removed but, remember the NuGet packages are targeted or build for the specific platform.
You will still able to use the AWSClientFactory when you set the Target Framework to 4.5.2 and install the NuGet package and when you set the Target Framework 4.0 and install the NuGet Package you will not able to use AWSCLientFactory but, instead, you can use the AmazonS3Client and write a program to work with S3.
Perhaps, understanding the .net implementation support would clarify why you faced the issue. You need to understand "The higher the version, the more APIs are available to you." Here is the link that would help you to understand the same.

Can't run the upload sample of youtube data API v3

I'm getting started with the youtube API (and .net in general) and I get the error:
"could not load file or assembly Microsoft.Threading.Tasks.Extensions.Desktop"
I installed from NuGet the packages Google.Apis.Tasks.V1 and Google.Apis.Youtube.v3.
Both packages say they support .net 4.5
The sample code is this https://github.com/youtube/api-samples/blob/master/dotnet/UploadVideo.cs
Where do I get that assembly?
If your package manager installed all references, then it should be in Microsoft.Bcl.Async.1.0.16\lib\net40.
I used this code to test youtube API upload, used .net framework 4.0, and it worked. Try to see in this folder (or if you don't have newest Microsoft.Bcl.Async then in the one you have).

add a reference to a visual studio project for amazon web services sdk

how can I add a reference to the amazon sdk (installed already) to my existing class library?
I can make a new amazon aws project, but I just want to add a reference to an already existing class library which will use amazon aws API's.
searched on line, but could not find it... so a link is as good as a direct answer.
Can't you just add a reference to the existing class library dll? I strongly engcourage you to download and install NuGet from Tools > Extension Manager and use that to install third party libraries. Check out the NuGet documentation for more details :)
To install (and reference) the AWS SDK, run the following command from the Package Manager Console:
Install-Package AWSSDK

Categories