protected override void SetState(IDictionary <string, object> state) { this.initialState = state; this.Acl = StatefulObject.CreateFromState <AccessControlList>(state.GetDictionary("Acl")); base.SetState(state); }
public static T CreateFromState <T>(IDictionary <string, object> payload) where T : StatefulObject, new() { return((T)StatefulObject.Create(typeof(T), payload, true)); }