Ejemplo n.º 1
0
        public void StaticallyTypedAndNamed()
        {
            MyStoredModel model = new MyStoredModel();

            model.Name   = "Tamer";
            model.DOB    = new DateTime(2018, 1, 1);
            model.Height = 177;

            DynamicStorageEventsManager.SubscribeToUpdatedEvent(nameof(model.Name), Name_Updated);
            //Can't subscribe to RetrievedEvent using the DynamicModel at this time
            //DynamicStorageEventsManager.SubscribeToRetrievedEvent(nameof(model.Name), Name_Retrieved);

            string me = $"{model.Name} - {model.DOB.ToString()} - {model.Height}cm";
        }
Ejemplo n.º 2
0
 public void Events()
 {
     DynamicStorageEventsManager.SubscribeToAddedEvent("Name", Name_Added);
     DynamicStorageEventsManager.SubscribeToUpdatedEvent("Name", Name_Updated);
     DynamicStorageEventsManager.SubscribeToRetrievedEvent("Name", Name_Retrieved);
 }