TrafficManager | A 2D-game in Go with engo | Game Engine library
kandi X-RAY | TrafficManager Summary
kandi X-RAY | TrafficManager Summary
A 2D-game in Go with engo, written during the tutorial sessions at engoengine.github.io
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Update updates the MoneySystem s amount .
- main runs engo .
TrafficManager Key Features
TrafficManager Examples and Code Snippets
Community Discussions
Trending Discussions on TrafficManager
QUESTION
Is it possible to use bot framework to send / update message as a user rather than the bot as the sender of message (perhaps after some form of authentication with the user that allows the bot to perform such operations)?
Below is an illustration of the current situation: I have sent a message by person A into Teams channel, and I would like to do an update to the message using bot framework as Graph API does not support update of message. However, the message does not get updated although there was no error.
This is placed in a web api controller "/test". Hence the update will be trigger by sending a POST to /test.
...ANSWER
Answered 2021-Jun-15 at 05:19Where a bot sends messages on behalf of a user, attributing the message to that user helps with engagement and showcase a more natural interaction flow. This feature allows you to attribute a message from your bot to a user on whose behalf it was sent. You can use on-behalf-attribute to send message as a user - please check User attribution for bots messages
QUESTION
On Microsoft Teams, we have a bot that sends AdaptiveCard message activities to users through the Microsoft Bot Framework REST API. Sometimes, the AdaptiveCard contains an Action.OpenUrl. With regular links such as https://google.com it works as expected, but since about one month, URL parameters with a mailto
url such as mailto:recipient@domain.com
no longer work: the message is sent, the button appears but clicking it does not do anything.
Sample request:
POST https://smba.trafficmanager.net/emea/v3/conversations//activities
Body:
...ANSWER
Answered 2021-Jun-10 at 05:05Currently openSafeUrlMT does not allow mailto urls. we already have a backlog feature request on this. Concern team is working on this.
QUESTION
A couple of days it was working well the ServiceURL value is "https://smba.trafficmanager.net/apac" which was clearly the location is "APAC" but recently sometimes the ServiceURL value change to "https://smba.trafficmanager.net/jp" and I believe this map for japan.
...ANSWER
Answered 2021-Feb-28 at 18:36For better understanding copying comments to answer @Eze
For each user the the service url will be different based on the region. This is by design.
QUESTION
I'm trying to create new Azure Monitor Alert using PS script. I'm using MS documentation here: https://docs.microsoft.com/en-us/powershell/module/az.monitor/add-azmetricalertrulev2?view=azps-5.9.0
Steps to reproduce$condition = New-AzMetricAlertRuleV2Criteria -MetricName "SqlDbDtuUsageMetric" -MetricNameSpace "Microsoft.Sql/servers/databases" -TimeAggregation Average -Operator GreaterThan -Threshold 5
$act = New-AzActionGroup -ActionGroupId /subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/microsoft.insights/actionGroups/SqlDbDtuUsageAction
Add-AzMetricAlertRuleV2 -Name "SqlDbDtuUsageAlertGt5" -ResourceGroupName {resource_group} -WindowSize 00:05:00 -Frequency 00:05:00 -TargetResourceId "/subscriptions/{subscription_id}/resourceGroups/{resource_group}/providers/Microsoft.Sql/servers/{sql_server}/databases/vi{sql_db}" -Description "Alerting when max used DTU is > 20" -Severity 3 -ActionGroup $act -Condition $condition
Error outputWARNING: 09:04:18 - *** The namespace for all the model classes will change from Microsoft.Azure.Management.Monitor.Management.Models to Microsoft.Azure.Management.Monitor.Models in future releases. WARNING: 09:04:18 - *** The namespace for output classes will be uniform for all classes in future releases to make it independent of modifications in the model classes. VERBOSE: Performing the operation "Create/update an alert rule" on target "Create/update an alert rule: SqlDbDtuUsageAlertGt5 from resource group: vi-prod-be-cin-rg". Add-AzMetricAlertRuleV2 : Exception type: ErrorResponseException, Message: Couldn't find a metric named metric1. Make sure the name is correct. Activity ID: 3e7e537e-43fc-40ad-8a84-745df33e1668., Code: BadRequest, Status code:BadRequest, Reason phrase: BadRequest At line:1 char:1
- Add-AzMetricAlertRuleV2 -Name "SqlDbDtuUsageAlertGt5" -ResourceGroupN ...
- ...
ANSWER
Answered 2021-May-25 at 01:40According to the error, the MetricNameSpace Microsoft.Sql/servers/databases
does not contain metric SqlDbDtuUsageMetric
. Regarding the supported metric, please use the following command to get
QUESTION
My objective is to post a message on personalChat
in msteamsbot using restapi endpoint.
auth token is generated using below logic (reference doc)
...ANSWER
Answered 2021-May-24 at 10:10The endpoint i used to postMessage on personal
chat is incorrect and it was present in the docs as well.
Below is the correct endpoint. This endpoint can be seen by logging the http payload request body of /api/messages
api
QUESTION
I am whitelisting some of the urls on my corporate firewall for a botframework app. The urls to be whitelisted are provided in this link.
But when I tracked the outgoing traffic from my local development, I saw that url (smba.trafficmanager.net
) was also being used which is not listed in the whitelist urls provided in microsoft documentation website. Do I need to whitelist this?
Since this is the ServiceUrl for conversation between user and the bot and is supposed to change in time, do the whole url (including domain, subdomain, port) changes or just the paths?
...ANSWER
Answered 2021-Apr-17 at 17:25Yes, you'll need that one as well for proactive messaging, but the base url should be fine - it's just the paths that change (e.g. https://smba.trafficmanager.net/apac/ or https://smba.trafficmanager.net/in/ or https://smba.trafficmanager.net/emea/).
QUESTION
I'm trying to use the Bing Maps Rest Toolkit to geocode a UK Postcode. The code should geocode an address and then pass it to an ASP.Net Webpage, where the geocoded address is used to plot a waypoint on a Map.
The Application builds with no errors, but whenever I try to run it, the page times out before anything is displayed. I've deduced that it fails when the Rest API is called on this line:
var response = await request.Execute();
aside from that, I'm not sure what's wrong. I'm very new to this, so some guidance would be greatly appreciated.
Thanks in advance, and my full code is as follows:
MapController.cs
...ANSWER
Answered 2021-Mar-26 at 16:07You AddGeocode
method is async but you never await it. In your C# create an array of the AddGeocode
tasks then outside of the loop use await Task.WhenAll
to run them in parrallel. This will help with performance and ensure all have processed before continuing.
A couple of other considerations on architecture:
- If the locations you will be geocoding are known ahead of time and don't change constantly, consider geocoding those ahead of time and storing the results in a database. This will significantly reduce costs and increase performance. This is a standard practice in most location finding type apps.
- If the locations change often and geocoding isn't an option. Currently your code does all the geocode requests from the server side, then sends down the results. This means more compute and more http requests on your server which will make this less scalable than if you offload that processing to the client. Consider making the geocode calls within the browser. This will mean the compute processing and those http requests will be made by the end users computer which will lessen the usage on your server and allow it to handle more users. I don't have an example for doing this with Bing Maps, but here is a similar example that uses Azure Maps: https://azuremapscodesamples.azurewebsites.net/?sample=Methods%20for%20geocoding%20multiple%20addresses
QUESTION
I have a question about a Microsoft Teams Python bot. If the bot has been added to some personal chats and group chats and I restart the bot, sometimes the bot needs to be added to the chats again. So I want to make bot sessions.
Is it possible to make a bot session in Microsoft Teams? I want to store session information on the local disk, and then have the bot load that data when it starts.
My bot code is very similar to this sample.
Thank you for your help.
Updated:
Like I said my bot code is very similar to this sample, but a bit different. Because of this I created an example for this question. First of all I create a bot in Azure and set up it.
After this, in my bot's config.py
file I set up the port and Microsoft app ID and password (generated by clicking the "Manage" button).
ANSWER
Answered 2021-Feb-09 at 14:52There is an option inside a bot to save a transcript of the conversation, but that's kind of unrelated. Basically, the important thing to know is that you don't need to store anything your side - from the user perspective, the entire conversation history is preserved in the Teams client, and from the perspective of your bot, storing the entire conversation history doesn't really gain you anything - user state is more relevant than conversation history. This would be storing an object in a persistence you choose (e.g. database, nosql store, azure blobs, whatever), but it would be state you choose to store for the user (basically whatever properties make sense to store for your app, in a kind of "User" collection). This is definitely a possible and often necessary concept, and this link will be useful for you: https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-concept-state?view=azure-bot-service-4.0
It's important to know though that this is a separate idea from sending a message on a defined schedule (e.g. Cron) to a user. For this to work, you need to read up on a concept called "Proactive Messaging". I have a sample on the Teams PnP gallery specifically dealing with it (code only in Node and Dotnet - no python I'm afraid, but hopefully it's useful for you). See here for that. Note that at the bottom of this link is a list of further reading on the topic as well.
Where the two above ideas come together is that you need to store certain state about the user to be able to send the proactive message later. In the sample I link to, I show how to get the settings you need to send the proactive message, but I've not included the concept of saving them to a data store - that's up to your own implementation inside your bot (e.g. SQL Azure, MongoDb, blob, whatever).
Also important to note (and I think part of the confusion and in fact part of why I wrote the sample) - your proactive code does not need to live in the same set of code as your bot! Your bot could be a web service running somewhere, and your proactive code an Azure Function/Lambda/similar.
QUESTION
I'm trying to implement a bot to send proactive messages. I made a proof of concept in NodeJS that works:
...ANSWER
Answered 2021-Feb-05 at 22:13It sounds like it could be an issue with BotTrustServiceUrl. I can't explain it but in one of my bots, I had to add this additional code to get proactive messages to work (specifically after a restart). Not sure if this is your same issue but it helped me.
QUESTION
I'm installing a Teams bot and adding it to a team. When I add it to the team, on the initial call I get the "conversationUpdate" event correctly, in OnTurnAsync. The issue I'm running into is that any call to get the team itself is failing because there is nothing there, that I can see, for getting the Id to call to get the team data.
I want to be able to add it to the team, get that event and then get the data related to the team it was added to.
Here is what I'm trying.
...ANSWER
Answered 2021-Jan-11 at 16:15Searched around a bit in the source code at https://github.com/microsoft/botbuilder-dotnet and found two things that indicate that there is no Channel in your turnContext
.
Here's the code:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install TrafficManager
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page