In the Virtual Assistant template (https://github.com/microsoft/botframework-solutions/tree/master/templates/Virtual-Assistant-Template/csharp/Template/VA) the current Startup.cs file is using TelemetryClient on line 72. However, according to this github issue (https://github.com/microsoft/ApplicationInsights-dotnet/issues/1152), it is being deprecated.
What is the suggested change that I should make in my code in order to fix this going forward? Will the template be updated to reflect this?
TelemetryClient is NOT being deprecated. Per the issue that you linked, TelemetryConfiguration.Active is being deprecated. A quick search of the VA bot github repo show that TelemetryConfiguration.Active is not used anywhere in the bot:
Related
I am reading and learning the code from: https://github.com/Microsoft/BotBuilder-Samples/tree/master/CSharp/Blog-LUISActionBinding
And then I wanted to plug this in my own project but LuisActionBinding is not working with LuisDialog. And I read that LuisActionDialog API is now obsolete
Can you point me to the right direction on how to go forward?
And I read that LuisActionDialog API is now obsolete
The LuisActionDialog API which is obsoleted is in the Microsoft.Bot.Builder.Dialogs namespace, and in the official LUIS Action Binding Sample, the LuisActionDialog is under the namespace Microsoft.Cognitive.LUIS.ActionBinding.Bot.
This Microsoft.Cognitive.LUIS.ActionBinding.Bot package is not released, if you want to use that LuisActionDialog, you need to download the sample, and there's source code of this package.
This is a reported issue and you can refer to it here.
I'm currently working on a Discord bot using Discord.Net.
I want to add voice support, but the documentation I found is for version 0.9.4 and not the latest one. Also the respective NuGet-Package says it is deprecated.
Is there another (new?) way adding voice support (the old one maybe doesn't work in future versions) or can I just use the one described in the outdated version?
Thx for your help!
I have developed an application in C# that uses the FacebookClient class. The version if this FacebookClient is 7.0.6. First of all it is the first time i use the facebook graph api, so sorry if i ask basic questions :)
When i go to the application in developers.facebook i see a warning containing the following text:
When i use the Get method on the FacebookCient class then i am not specifying any version. The Version property of the FacebookClient is null when i read it.
So my questions are:
Shouldnt the FacebookClient class automatically use the latest version of the graph API when no version are specified? It looks like it uses v2.0 even thoug v2.6 is the newest.
How can i make sure that it always uses the newest version possible?
Since i havent so much experience with the facebook api, what is the prefered way to deal with this?
Can i use a specific version by setting the Version property to e.g. "v2.6" or .Get("/v2.6/someCall")?
You can ignore the warning, there is an open bug for this: https://developers.facebook.com/bugs/1634445133540643/
If you omit the version, it will use the API version of the App, not the latest version. It´s always the latest one if you create a new App, but it will not upgrade automatically.
Btw, there is an upgrade tool: https://developers.facebook.com/tools/api_versioning/
Ok this is a simple question, but the Xamarin forums are pretty much useless...
I am trying to implement Leaderboards in my game that is built in MonoGame. Unfortunately, I can't seem to find the GameHelper class and I cannot extend BaseGameActivity as described in Google's how-to, even though I have the google play services component installed (19.0.1)
The only other alternative is using the GoogleApiClient, which I tried:
public IGoogleApiClient apiClient;
GoogleApiClientBuilder builder = new GoogleApiClientBuilder(this);
builder.AddApi(GamesClass.Api)
.AddApi(PlusClass.Api)
.AddScope(GamesClass.ScopeGames)
.AddScope(PlusClass.ScopePlusLogin);
apiClient = builder.Build();
But whenever I make a call to apiClient.Connect(), I get the following error:
E/GooglePlayServicesUtil( 7989): The Google Play services resources were not found.
Check your project configuration to ensure that the resources are included.
I have cleaned and rebuilt, removed the component and added the references manually, changed the location of the project to the root of the drive, all to no avail. I'm out of ideas. Anyone have leaderboards running in MonoGame?
I recently wrote a MonoGame project for Android, which includes Leaderboard support. You can find the full source here, but I would recommend looking at Activity1.cs in particular. It is where I do most of the Google Play work.
You can also take a look at GameOver.cs to see an instance of the leaderboard getting a score submitted to it.
That error message may not be the cause of your problem. I lifted the code and resources from BaseGame Utils and integrated it with my own project. I always get that message, and the game works perfectly.
I suggest you look carefully for any subsequent errors.
I wish to use Google YouTube API. I am following this example: https://developers.google.com/youtube/v3/code_samples/dotnet#upload_a_video
I have used package manager to download the api (https://www.nuget.org/packages/Google.Apis.YouTube.v3/1.7.0.94-beta) but I see that the code doesn't work as the apis must have changed.
For example the namespaces have changed and the functions in the code is not recognised.
Does anyone know how to get this working?
I cannot leave a comment because i don't have enough reputation.
Please make sure you're using NuGet to install the latest client library and the related assemblies into your project. See https://developers.google.com/api-client-library/dotnet/get_started#setup