![](/img/trans.png)
[英]Microsoft Graph - Outlook Api - How to get the id of the event created?
[英]created a microsoft graph api request, how to make a web service out of it?
我創建了這個方法來在 Azure 活動目錄中創建一個團隊。
public async Task CreateTeamTest()
{
...connection stuff...
var team = new Team
{
DisplayName = "0000My Sample Team",
Description = "My Sample Team’s Description",
AdditionalData = new Dictionary<string, object>()
{
{"template@odata.bind", "https://graph.microsoft.com/v1.0/teamsTemplates('standard')"}
}
};
await graphClient.Teams.Request().AddAsync(team);
}
之后我想創建一個服務,我可以從 IIS 中的應用程序調用,但我不知道如何實現這一點,我已經開始使用類似的東西,但它什么也沒做。
[WebMethod]
public async Task<string> createTeamDePruebaAsync()
{
try
{
//this is the class containing my method
TeamServices ts = new TeamServices();
await ts.CreateTeamTest();
return "OK";
}
catch(Exception e)
{
return e.Message;
}
}
我的問題是你們使用什么途徑將方法轉換為 web 服務?
也許問題是我正在使用帶有 microsoft graph request async 的 asmx,但它們不匹配
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.