Ejemplo n.º 1
0
 public AuditActor(string machineName, string machineIP, string userName, string authenticationType, DateTime timeStampUtc, AuditActor onBehalfOf)
 {
     MachineName        = machineName;
     UserName           = userName;
     AuthenticationType = authenticationType;
     TimestampUtc       = timeStampUtc;
     OnBehalfOf         = onBehalfOf;
 }
Ejemplo n.º 2
0
 public AuditActor(string machineName, string machineIP, string userName, string authenticationType, DateTime timeStampUtc, AuditActor onBehalfOf)
 {
     MachineName = machineName;
     UserName = userName;
     AuthenticationType = authenticationType;
     TimestampUtc = timeStampUtc;
     OnBehalfOf = onBehalfOf;
 }
Ejemplo n.º 3
0
        public static async Task <AuditActor> GetCurrentMachineActor(AuditActor onBehalfOf)
        {
            // Try to get local IP
            string ipAddress = await GetLocalIP();

            return(new AuditActor(
                       Environment.MachineName,
                       ipAddress,
                       String.Format(@"{0}\{1}", Environment.UserDomainName, Environment.UserName),
                       "MachineUser",
                       DateTime.UtcNow,
                       onBehalfOf));
        }
Ejemplo n.º 4
0
        public static async Task<AuditActor> GetCurrentMachineActor(AuditActor onBehalfOf)
        {
            // Try to get local IP
            string ipAddress = await GetLocalIP();

            return new AuditActor(
                Environment.MachineName,
                ipAddress,
                String.Format(@"{0}\{1}", Environment.UserDomainName, Environment.UserName),
                "MachineUser",
                DateTime.UtcNow,
                onBehalfOf);
        }
Ejemplo n.º 5
0
 public AuditEntry(AuditRecord record, AuditActor actor)
 {
     Record = record;
     Actor = actor;
 }
Ejemplo n.º 6
0
 public AuditEntry(AuditRecord record, AuditActor actor)
 {
     Record = record;
     Actor  = actor;
 }