示例#1
0
        protected virtual void OnEntityLoad(EntityLoadEventArgs e)
        {
            EventHandler <EntityLoadEventArgs> handler = EntityLoad;

            if (handler != null)
            {
                handler(this, e);
            }
        }
示例#2
0
        protected void RaiseOnEntityLoad(InterceptedEventArgs e)
        {
            if (EntityLoad != null)
            {
                var args = new EntityLoadEventArgs(e.Continuation, e.Step, e.Packet);
                OnEntityLoad(args);

                e.Cancel       = args.Cancel;
                e.WasContinued = args.WasContinued;
            }
        }