Monday, September 25, 2017

Condition Throw Exception

if (list == null || list.Count < 1)

    throw new ApplicationException("Get list Failed.");

Monday, September 11, 2017

Firebase Cloud Function

  • Function for Fire base features (trigger event by firebase)
    • in GCP, not your mobile (light for your mobile app)
    • Logic Centralized , safe, server less
  • Example
    • Write Realtime Database trigger function
    • Upload your storage bucket
    • New user authentication
    • Incoming HTTPS requests
    • Send Message
  1. Install Node.JS
  2. Install Firebase CLI
    • npm install -g firebase-tools
  3. cd to folder (firebase cloud function project)
  4. firebase login
  5. firebase init (Deselect Database and Hosting)

https://www.youtube.com/watch?v=EvV9Vk9iOCQ#t=314.64541