Beispiel #1
0
 public void SetPageAccessLogNew(PageAccessLogModel p)
 {
     try
     {
         SqlParameter[] Parameters =
         {
             new SqlParameter("@UserSNo",     p.UserSNo),
             new SqlParameter("@UserID",      p.UserID),
             new SqlParameter("@CityCode",    p.CityCode),
             new SqlParameter("@Module",      p.Module),
             new SqlParameter("@AppName",     p.AppName),
             new SqlParameter("@FormAction",  p.FormAction),
             new SqlParameter("@IPAddress",   p.IPAddress),
             new SqlParameter("@HostName",    p.HostName),
             new SqlParameter("@TerminalSNo", p.TerminalSNo),
             new SqlParameter("@Browser",     p.Browser),
             new SqlParameter("@Url",         p.URL),
             new SqlParameter("@SesstionId",  HttpContext.Current.Session.SessionID)
         };
         SqlHelper.ExecuteNonQuery(ReadConnectionString.WebConfigConnectionString, CommandType.StoredProcedure, "SetPageAccessLog", Parameters);
     }
     catch (Exception ex)//
     {
         throw ex;
     }
 }
Beispiel #2
0
 public PageEntryLogPublisher(IConfiguration configuration,
                              PageAccessLogModel pageAccesslogModel
                              /*, HttpContext context*/)
 {
     _configuration      = configuration;
     _pageAccessLogModel = pageAccesslogModel;
     //_context = context;
 }
 public PageEntryLogRabbitMQAttribute(PageEntryLogPublisher pageEntryLogPublisher,
                                      RemoteAddressFinder remoteAdressFinder,
                                      PageAccessLogModel pageAccesslogModel)
 {
     _pageEntryLogPublisher = pageEntryLogPublisher;
     _remoteAdressFinder    = remoteAdressFinder;
     _pageAccessLogModel    = pageAccesslogModel;
 }
Beispiel #4
0
 public ExceptionHandlingMiddleware(RequestDelegate next,
                                    //ExceptionHandlingLogPublisher exceptionHandlingLogPublisher,
                                    RemoteAddressFinder remoteAdressFinder,
                                    PageAccessLogModel pageAccesslogModel)
 {
     _next = next;
     //_exceptionHandlingLogPublisher = exceptionHandlingLogPublisher;
     _remoteAdressFinder = remoteAdressFinder;
     _pageAccessLogModel = pageAccesslogModel;
 }