コード例 #1
0
ファイル: EventArgs.cs プロジェクト: j-prox/blueprint41
        internal static EntityEventArgs CreateInstance(EventTypeEnum eventType, OGMImpl sender, Transaction trans, bool locked = false)
        {
            Type type = sender.GetEntity().EntityEventArgsType;

            EntityEventArgs args = (EntityEventArgs)Activator.CreateInstance(type, true) !;

            args.EventType            = eventType;
            args.SenderInternalBridge = sender;
            args.Entity      = sender.GetEntity();
            args.Transaction = trans;
            args.Locked      = locked;

            sender.AppendEventHistory(args);

            return(args);
        }
コード例 #2
0
ファイル: OGMImpl.cs プロジェクト: j-prox/blueprint41
 internal void AppendEventHistory(EntityEventArgs args)
 {
     eventHistory.Add(args);
 }