Exemplo n.º 1
0
        protected override void SetState(IDictionary <string, object> state)
        {
            this.initialState = state;

            this.Acl = StatefulObject.CreateFromState <AccessControlList>(state.GetDictionary("Acl"));

            base.SetState(state);
        }
Exemplo n.º 2
0
 public static T CreateFromState <T>(IDictionary <string, object> payload)
     where T : StatefulObject, new()
 {
     return((T)StatefulObject.Create(typeof(T), payload, true));
 }