AuditLog.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / infocard / Service / managed / Microsoft / InfoCards / AuditLog.cs / 1 / AuditLog.cs

                            //------------------------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------------------------
namespace Microsoft.InfoCards
{ 
    using System;
    using Microsoft.InfoCards; 
    using Microsoft.InfoCards.Diagnostics; 
    using IDT=Microsoft.InfoCards.Diagnostics.InfoCardTrace;
 
    //
    // Summary:
    // Provides a simple audit log abstraction allowing us to move to
    // the security log easily in v2. Currently we just log informational 
    // messages to the application event log.
    // 
    internal static class AuditLog 
    {
        public static void AuditCardWritten() 
        {
            IDT.Audit( EventCode.AUDIT_CARD_WRITTEN );
        }
        public static void AuditCardDeletion() 
        {
            IDT.Audit( EventCode.AUDIT_CARD_DELETE ); 
        } 
        public static void AuditCardImport()
        { 
            IDT.Audit( EventCode.AUDIT_CARD_IMPORT );
        }
        public static void AuditStoreImport()
        { 
            IDT.Audit( EventCode.AUDIT_STORE_IMPORT );
        } 
        public static void AuditStoreExport() 
        {
            IDT.Audit( EventCode.AUDIT_STORE_EXPORT ); 
        }
        public static void AuditStoreDeletion()
        {
            IDT.Audit( EventCode.AUDIT_STORE_DELETE ); 
        }
    } 
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK