예제 #1
0
        public static SwarmopsLogEntry CreateEntry (Person person, IXmlPayload logEntry)
        {
            string logEntryClass = logEntry.GetType().ToString();

            if (logEntryClass.StartsWith("Swarmops.Logic.Support.LogEntries."))
            {
                logEntryClass = logEntryClass.Substring("Swarmops.Logic.Support.LogEntries.".Length);
            }

            int logEntryId = SwarmDb.GetDatabaseForWriting().CreateSwarmopsLogEntry(
                person != null ? person.Identity : 0, logEntryClass, logEntry.ToXml());

            return SwarmopsLogEntry.FromIdentityAggressive(logEntryId);
        }
예제 #2
0
        public static SwarmopsLogEntry CreateEntry(Person person, IXmlPayload logEntry)
        {
            string logEntryClass = logEntry.GetType().ToString();

            if (logEntryClass.StartsWith("Swarmops.Logic.Support.LogEntries."))
            {
                logEntryClass = logEntryClass.Substring("Swarmops.Logic.Support.LogEntries.".Length);
            }

            int logEntryId = SwarmDb.GetDatabaseForWriting().CreateSwarmopsLogEntry(
                person != null ? person.Identity : 0, logEntryClass, logEntry.ToXml());

            return(SwarmopsLogEntry.FromIdentityAggressive(logEntryId));
        }
예제 #3
0
 public PayloadEnvelope(IXmlPayload payload)
 {
     PayloadClass = payload.GetType().ToString();
     PayloadXml   = payload.ToXml();
 }