Exemplo n.º 1
0
        public SingleOriginEvent Parse(RawApplicationEvent rae)
        {
            #region entry code

            //b.Assert.True(ActiveChain != null, "The active chain must be completed before you are able to parse any entries");

            #endregion

            SingleOriginEvent result = ActiveChain.Parse(rae);

            // Fallback identity provider if the parser hasnt set it.
            if ((result != null) && (result.OriginIdentity < 0))
            {
                result.OriginIdentity = identityProvider.GetOriginIdentity(rae.Machine, rae.Process);
            }
            return(result);
        }