I am trying to create a "wierd push notification".
Every time there is a new task/request in TFS, I will get a notification in my C# program, so I can take the necessary actions...
The problem is, that as I see TFS2015 only supports sending notifications and alerts to e-mail addresses...
If there would be a solution what can notify (eg. with events) my code, that I have recieved a new e-mail... (we are using Outlook)
Anyway, if anyone have a better solution do not hold it back!
To achieve what you want, you can develop a VSTO Add-In for Outlook to listen to the Outlook. Then you write code directly against the ThisAddIn class in your project.
Get start of the VSTO Add-In for Outlook, you can refer to: https://msdn.microsoft.com/en-us/library/cc668191.aspx
You can create a Server Side plugin to track the server event and send notification: TFS Event Handler for Team Foundation Server.
Related
I have developed (using C#) an Outlook add-in, which implements some rules on client side.
It receives each incoming mail, and if it fits some rules it locates it in a specific folder. The main issue is that it works fine, only when outlook client is open on user pc. If it is closed it does not work, because it is triggered on client's pc.
I wonder if it can get developed or moved somehow on server side (Microsoft 365 Exchange Server), so it works 24/7.
How complicated is the logic in code you have written ? eg a lot of the logic your talking about can be done in Office365 using Flow without needing to write any code (you can even write custom connectors for more advanced logic). You won't be able to use the Outlook code you have written but you can do the same thing using either the Microsoft Graph API and Webhooks to listen to incoming email and then use the Graph operations to perform whatever logic you have (host the app on Azure etc or even can be a server-less function hosted on Azure or AWS) or using EWS Notifications https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/notification-subscriptions-mailbox-events-and-ews-in-exchange
I have a simple console application that upload a file to sharepoint and then I do some operations with file that I need to do. Until now everything seems to be correct. But now I need to add an event receiver that when the file is update or deleted the event send a message to service bus indicating the change. I saw a lot of tutorials but none of them show how to do this from the beginning and using console application in c#, I need to know where to start.
PS: I am using VS 2013
I have read it on few msdn forum that test Management service in Team Foundation Server raises notifications on some specific actions by its users. You can subscribe
to these notifications to understand what’s going on in the server. Here are some of the important notifications which are raised by test management service.
TestRunStartedNotification
TestRunChangedNotification
TestRunCompletedNotification
TestPlanChangedNotification
TestSuiteChangedNotification
TestConfigurationChangedNotification
Can anybody share the step for it like how to set alert for this
after TestRunCompletedNotification mail should be sent to user. Can
it be done through MTM. I know TFS alert but i want to it for
specific suite or plan that email should be sent after test run
over.
please help
If you start automated tests manually from MTM, there is no default way like TFS alert for these events. To use these services, you need to create a listener to listen to these events. That means you have to use TFS API and implement sending e-mail yourself. You can check the blog on how to create a event handler: http://vgaltes.com/index.php/2013/04/14/create-a-team-foundation-server-event-handler/
If you only want to get alert of the test result, you can create a build definition using LabDefaultTemplate, and use this build definition for starting your tests instead of starting them from MTM. Each time, you want to run tests, you can queue this build. In this way, you can create Build Alerts in TFS to get notification of the test result.
I wonder it is possible to get data from email message to c#?
It is?
If you have got an account configured in Outlook you may consider automating it. See How to automate Outlook from another program for more information. And C# app automates Outlook (CSAutomateOutlook) for sample code.
Also you may consider developing a managed add-in for Outlook. In that case you will be able to handle Outlook events and track what users do. See Walkthrough: Creating Your First Application-Level Add-in for Outlook for more information.
Using PowerShell, it is possible to subscribe to a .NET, WMI or engine event via Register-ObjectEvent, Register-WmiEvent or Register-EngineEvent, respectfully, and each of these cmdlets have an –Action parameter to which you can hand a block of code that is to be invoked when the event occurs.
I can't seem to figure out how, using one of the above event types (a .NET, WMI or engine event), I might be able to subscribe to the event that is raised on the creation of a new mailbox in Exchange Server 2010. To be more specific, I'm simply trying to figure out what event I need to subscribe to. Along these lines, I was hoping someone might be able to point me in the right direction as to where I could find more details on which events I can subscribe to in Exchange Server 2010 and the args that are passed when the event is raised.
To provide some context here, I have a cloud based mail service that needs to know how many users a given organization is using. Doing something like an AD sync is not an option. I have access to the Exchange Server 2010 server during the initial provisioning of the service and I will be able to execute PowerShell scripts in their environment at this time (PowerShell 2.0). Ideally I would like to have the -Action parameter execute a block of code that makes a call to my API notifying me that a new mailbox has been provisioned.
I am a .NET developer but I am new to working with Exchange and fairly new to working with PowerShell especially in this context. I can work out the scripts/code myself, but I would like to figure out if I can even subscribe to a new mailbox event before I go too far down this path.
Any help here would be greatly appreciated!
I'm not aware of Exchange raising any event in any of those contexts. Do you have access to the actual Exchange servers, or are you just a tenant?