Posts

Sharing MS Azure Free Trail Subscription with Guest user accounts through Azure Active Directory B2B

Image
Here is a guide on how you can setup guest user accounts on Microsoft Azure Active Directory to share your free trial subscription of MS Azure portal with complete administrative privileges so they can create or manage Azure Resources. First open Azure Portal, go to Azure Active Directory, if you don't see it in the left navigation bar (favorites), click on "All services" and search for "Azure Active Directory" (clicking on star will add it to left nav bar favorites). On Azure Active Directory Blade click "Users", it will open up a new blade showing "All Users".  Now click on "New Guest User". Enter guest user email address and your custom invitation message. Click on Invite to send invitation to user's email address.  An invitation will be sent to the guest user to join Azure Active Directory.  If somehow Guest doesn't receive the email, you can resend the email or directly share t...

Xamrin Android Push Notification using Firebase Cloud Messaging

Image
Create a   New Project . Select   Single-View App (Android)  under  Installed > Visual > C# >Android Open   AndroidManifest.xml  file under your Android project's Properties Copy value of  package  attribute in  manifest  tag Open your browser and goto  https://console.firebase.google.com   . Sign-in with your  Google  acoount create a new one Click on  Add Project . Choose a project name. Here, the name is  PushNotificationGCM Click on  Add Firebase to your Android App Paste the package name copied in Step 3 and click  Register App Click on  Download google-services.json  and click continue Copy  google-services.json  file into Android project Include  google-services.json  file   into Project's Solution by clicking  View All Files  in Solution Explorer tab, Right-click  google-services.json  file and click  In...

C# Generics

Image
In this blog I will very briefly discuss some of the concepts of generics. I also want to mention that generics is a large topic so please see MSDN for reference. I will try to deliver some general concepts about generics. What are Generics? Generics allow us to write classes, structures, methods, interfaces or delegate in such a way that they operate on the type of data specified in the parameter <T> . So for example, we write a general code for a class and it can perform that functionality on different types of data mentioned in the type parameter. Can’t we do the same with object class? Well not in all cases. Generics allow us to write a general code which will compile as if it were written on the type we specified in parameter. Also, if we try to get this functionality with object class, there is a lot of burden in doing so, such as downcasting every time we need to operate on specific type, boxing & unboxing can be an overhead on processing. Why ...