azure-mobile-services

Is there a way to automatically generate Swagger tags from precomipled C# Azure Functions?

夙愿已清 提交于 2019-12-06 14:28:08
问题 Is anyone aware of any .NET attributes that can be used to annotate a precompiled C# Azure Function so it can generate Swagger tags automatically? For example, I would like to auto-generate the "tags" entry in Swagger: /api/v1/revision: get: operationId: /api/v1/revision/get tags: - System produces: [] consumes: [] parameters: [] description: Gets the API version responses: '200': description: Success operation security: - apikeyQuery: [] Here is my C# function: public static class

Architecture of Azure Mobile Services Application

守給你的承諾、 提交于 2019-12-06 11:41:52
问题 I'm trying to piece together an architecture for a Windows Universal App leveraging Azure Mobile Services. It's a LOB app and will need to handle 100-250 offline\online tables. Currently Mobile Services doesn't support nested complex objects so on the service side I've mapped most of my tables straight through from entity framework. The question I have is whether I should use a separate layer to reconstitute the DTO's or if i should be doing this all through the service layer and the view

3rd Party Library “cordova-plugin-ms-azure-mobile-apps” not getting recognized in my Ionic 2 app

自闭症网瘾萝莉.ら 提交于 2019-12-06 09:51:54
After looking everywhere (and going through the past forum topics on all sorts of websites) for the last 2 days and no solution, I am posting here as a last resort. I understand everybody is busy but this is killing me. I have tried everything possible from creating the app from scratch multiple times to adding one library at a time then run and make sure it's working then add another library and then run the app... Everything is good until I add " cordova-plugin-ms-azure-mobile-apps " in my app. I am using the following command: ionic plugin add cordova-plugin-ms-azure-mobile-apps --save This

azure mobile service active directory authentication X-ZUMO-AUTH token valid in postman after logout

可紊 提交于 2019-12-06 06:22:40
I have Azure Mobile Service and AD set up for authentication. Log out and login works perfectly through mobile app. AD application reply url is https://test.azure-mobile.net/signin-aad client = new MobileServiceClient (applicationURL, applicationKey); var authResult = await client.LoginAsync(this, MobileServiceAuthenticationProvider.WindowsAzureActiveDirectory); var data = await client.InvokeApiAsync("testAPI", HttpMethod.Get, null); //Works client.Logout(); // LOGOUT var data = await client.InvokeApiAsync("testAPI", HttpMethod.Get, null); //Unauthorized Error at mobile side. Request not going

Azure NotificationHub - Detect failed notifications

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 05:23:25
I am trying to store failed notifications in a db , e.g. client does not have internet access. This will enable me to check from a backgroundService if there is a missing notification, and then create it from the backgroundService . I therefore have the following, on my Azure App Service Mobile : var notStat = await hub.SendWindowsNativeNotificationAsync(wnsToast, tag); telemetry.TrackTrace("failure : " + notStat.Failure + " | Results : " + notStat.Results + " | State : " + notStat.State + " | Success : " + notStat.Success + " | trackingID : " + notStat.TrackingId + "); The code snippet was to

Enabling Authentication with SIgnalR against Azure Mobile Services and a Javascript client

非 Y 不嫁゛ 提交于 2019-12-06 05:04:59
I am having a heck of a time trying to figure out how one is supposed to have AMS authentication with SignalR while using a JavaScript client. I downloaded the JavaScript client for Azure Mobile Services, I've got Signal R on AMS - that's all hooked up and ready to go. I've got the authentication setup. I can actually call .login("microsoftaccount") on the AMS JS client and go through that process and get back a token and id. What I don't know is how to connect the two. I tried just calling $.connection.hub.Start() - it gives me 401. I tried putting the token in the query string, again it

Azure Mobile Apps - Custom authentication - Unable to login

非 Y 不嫁゛ 提交于 2019-12-06 03:26:18
I'm working in a Xamarin Forms mobile app with .NET background. I followed the guides as much as I could. But those are somehow uncompleted and there are not complete examples of custom authentication. I finally reach a point were I don't now how to advance. I can't make the login work. I get this error after the client gets the respond of the LoginAsync: user = await TodoItemManager.DefaultManager.CurrentClient.LoginAsync("CustomAuth", credentials); This is the error : ex {"Object reference not set to an instance of an object."} System.Exception {System.NullReferenceException} If I use a

Entity CodeFirst EF6, EntityData string id

蓝咒 提交于 2019-12-06 02:36:45
Have started to use Entity Code First with Azure Mobile Services and have met some issue: For using TableController with Entity objects I need to derive each of them from EntityData class, that provide string Id field! I used to use int, long and even guid instead string for id, so... What is benefits of this? What about insert operation and what is the best practice for this? What about performance for string id? @carlosfigueira has a good writeup about the change to using string id here: http://blogs.msdn.com/b/carlosfigueira/archive/2013/11/23/new-tables-in-azure-mobile-services-string-id

Using ASP.NET 4.0 membership provider with Azure Mobile Services

左心房为你撑大大i 提交于 2019-12-06 01:32:36
Ive come up against a major problem. I am building a system which emloys a ASP.NET 4 Web App > Azure SQL > Azure Mobile Service > Windows Phone 8 app. The data is inputed into the Web Site which is already hosted on azure and which employs the Membership Provider and hence its default tables. This data is stored already successfully on Azure SQL db. My major obstacle is Azure Mobile Services requires each and every table on it to have their primary key to be called "id" - lower case! Crazy in my opinion. And of course the Membership Provider has different names for PK's. Question - Should I

Web API converted to Azure Mobile Service not serializing all properties

狂风中的少年 提交于 2019-12-05 21:29:59
I have a working Web API that i am converting to a .Net Azure Mobile Service. The API returns a complex model - objects with properties - some of which are collections of other objects. This works as expected with plain Web API but with Azure Mobile Services I have an issue where one of my models does not have all it's properties serialized. When i set a break point on the return statement in the controller, I see that all the properties and their values are present. This leads me to believe that the issue is with serialization (JSON). return Request.CreateResponse(HttpStatusCode.OK, myModel);