Connection to the audit subsystem without a full regeneration project

Connection algorithm

to Regenerate objects

to Make changes in the app.config

Add initialization of audit main

to Connect the missing Assembly

mistake the objects

Without regeneration of the objects is still not enough, because the audit settings are stored in the classes (see here in the section “configuring a class”).

changes in the app.config

In block Configuration - appSettings need to add the following lines:

    <add key="AuditEnabled" value="True" />
    <add key="WriteSessions" value="False" />
    <add key="AuditWinServiceUrl" value="" />
    <add key="DefaultDSType" value="ICSSoft.STORMNET.Business.MSSQLDataService, ICSSoft.STORMNET.Business.MSSQLDataService" />
    <add key="DefaultWriteMode" value="Synchronous" />
    <add key="IsAuditDatabaseLocal" value="True" />

And

    <add key="AppNameForAudit" value="..." />
    <add key="AuditConnectionStringName" value="..." />

… instead of putting the required values of the names of Win-service, and connection strings to the database audit.

Connection audit in main

you need to add the initialization call using Initial audit.


// *** Start programmer edit section *** (TestFS Main()) 
ICSSoft.STORMNET.Windows.Forms.WinApplication.SetUICultureAsRussian();

// Initialize audit service 
AuditSetter.InitAuditService(DataServiceProvider.DataService); 
// *** End programmer edit section *** (TestFS Main()) 

Connection assemblies

to connect to the application and DesktopCustomizer ICSSoft.STORMNET.Business.Audit.dll.

To the application to include build Security.

Cm. also

Connection example of an audit to an existing Web application without the use of a regeneration project.