public void SetContextualProperty(object key, object value) { if (key == null) { throw new ArgumentNullException("key"); } if (extendedProperties == null) { extendedProperties = new Arguments(); } extendedProperties[key] = value; }
protected override object InternalCreate(CreationContext context) { var instance = Instantiate(context); context.SetContextualProperty(this, instance); SetUpProperties(instance, context); ApplyCommissionConcerns(instance); return instance; }