Exemplo n.º 1
0
 private void MapFunctionPointers()
 {
     addProviderJSONNative = _quickloggerlib.LoadFunction <AddProviderJSONNative>("AddProviderJSONNative");
     removeProviderNative  = _quickloggerlib.LoadFunction <RemoveProviderNative>("RemoveProviderNative");
     addWrapperStatusChangedDelegateNative = _quickloggerlib.LoadFunction <AddWrapperStatusChangedDelegateNative>("AddWrapperStatusChangedDelegateNative");
     addWrapperSendLimitsDelegateNative    = _quickloggerlib.LoadFunction <AddWrapperSendLimitsDelegateNative>("AddWrapperSendLimitsDelegateNative");
     addWrapperCriticalErrorDelegateNative = _quickloggerlib.LoadFunction <AddWrapperCriticalErrorDelegateNative>("AddWrapperCriticalErrorDelegateNative");
     addWrapperQueueErrorDelegateNative    = _quickloggerlib.LoadFunction <AddWrapperQueueErrorDelegateNative>("AddWrapperQueueErrorDelegateNative");
     addWrapperRestartDelegateNative       = _quickloggerlib.LoadFunction <AddWrapperRestartDelegateNative>("AddWrapperRestartDelegateNative");
     addWrapperStartDelegateNative         = _quickloggerlib.LoadFunction <AddWrapperStartDelegateNative>("AddWrapperStartDelegateNative");
     addWrapperFailDelegateNative          = _quickloggerlib.LoadFunction <AddWrapperFailDelegateNative>("AddWrapperFailDelegateNative");
     addStandardConsoleProviderNative      = _quickloggerlib.LoadFunction <AddStandardConsoleProviderNative>("AddStandardConsoleProviderNative");
     addStandardFileProviderNative         = _quickloggerlib.LoadFunction <AddStandardFileProviderNative>("AddStandardFileProviderNative");
     addWrapperErrorDelegateNative         = _quickloggerlib.LoadFunction <AddWrapperErrorDelegateNative>("AddWrapperErrorDelegateNative");
     testCallbacksNative    = _quickloggerlib.LoadFunction <TestCallbacksNative>("TestCallbacksNative");
     infoNative             = _quickloggerlib.LoadFunction <InfoNative>("InfoNative");
     warningNative          = _quickloggerlib.LoadFunction <WarningNative>("WarningNative");
     criticalNative         = _quickloggerlib.LoadFunction <CriticalNative>("CriticalNative");
     exceptionNative        = _quickloggerlib.LoadFunction <ExceptionNative>("ExceptionNative");
     errorNative            = _quickloggerlib.LoadFunction <ErrorNative>("ErrorNative");
     traceNative            = _quickloggerlib.LoadFunction <TraceNative>("TraceNative");
     customNative           = _quickloggerlib.LoadFunction <CustomNative>("CustomNative");
     successNative          = _quickloggerlib.LoadFunction <SuccessNative>("SuccessNative");
     disableProviderNative  = _quickloggerlib.LoadFunction <DisableProviderNative>("DisableProviderNative");
     enableProviderNative   = _quickloggerlib.LoadFunction <EnableProviderNative>("EnableProviderNative");
     getLibVersion          = _quickloggerlib.LoadFunction <GetLibVersionNative>("GetLibVersionNative");
     getProviderNamesNative = _quickloggerlib.LoadFunction <GetProviderNamesNative>("GetProviderNamesNative");
     getLastErrorNative     = _quickloggerlib.LoadFunction <GetLastErrorNative>("GetLastError");
     waitSecondsForFlushBeforeExitNative = _quickloggerlib.LoadFunction <WaitSecondsForFlushBeforeExitNative>("WaitSecondsForFlushBeforeExitNative");
     getQueueCountNative          = _quickloggerlib.LoadFunction <GetQueueCountNative>("GetQueueCountNative");
     getProvidersQueueCountNative = _quickloggerlib.LoadFunction <GetProvidersQueueCountNative>("GetProvidersQueueCountNative");
     isQueueEmptyNative           = _quickloggerlib.LoadFunction <IsQueueEmptyNative>("IsQueueEmptyNative");
     resetProviderNative          = _quickloggerlib.LoadFunction <ResetProviderNative>("ResetProviderNative");
     getCurrentProvidersNative    = _quickloggerlib.LoadFunction <GetCurrentProvidersNative>("GetCurrentProvidersNative");
 }
Exemplo n.º 2
0
 private void MapFunctionPointers()
 {
     addProviderJSONNative = _quickloggerlib.LoadFunction <AddProviderJSONNative>("AddProviderJSONNative");
     removeProviderNative  = _quickloggerlib.LoadFunction <RemoveProviderNative>("RemoveProviderNative");
     addWrapperStatusChangedDelegateNative = _quickloggerlib.LoadFunction <AddWrapperStatusChangedDelegateNative>("AddWrapperStatusChangedDelegateNative");
     addWrapperSendLimitsDelegateNative    = _quickloggerlib.LoadFunction <AddWrapperSendLimitsDelegateNative>("AddWrapperSendLimitsDelegateNative");
     addWrapperCriticalErrorDelegateNative = _quickloggerlib.LoadFunction <AddWrapperCriticalErrorDelegateNative>("AddWrapperCriticalErrorDelegateNative");
     addWrapperQueueErrorDelegateNative    = _quickloggerlib.LoadFunction <AddWrapperQueueErrorDelegateNative>("AddWrapperQueueErrorDelegateNative");
     addWrapperRestartDelegateNative       = _quickloggerlib.LoadFunction <AddWrapperRestartDelegateNative>("AddWrapperRestartDelegateNative");
     addWrapperStartDelegateNative         = _quickloggerlib.LoadFunction <AddWrapperStartDelegateNative>("AddWrapperStartDelegateNative");
     addWrapperFailDelegateNative          = _quickloggerlib.LoadFunction <AddWrapperFailDelegateNative>("AddWrapperFailDelegateNative");
     addStandardConsoleProviderNative      = _quickloggerlib.LoadFunction <AddStandardConsoleProviderNative>("AddStandardConsoleProviderNative");
     addStandardFileProviderNative         = _quickloggerlib.LoadFunction <AddStandardFileProviderNative>("AddStandardFileProviderNative");
     addWrapperErrorDelegateNative         = _quickloggerlib.LoadFunction <AddWrapperErrorDelegateNative>("AddWrapperErrorDelegateNative");
     testCallbacksNative    = _quickloggerlib.LoadFunction <TestCallbacksNative>("TestCallbacksNative");
     infoNative             = _quickloggerlib.LoadFunction <InfoNative>("InfoNative");
     warningNative          = _quickloggerlib.LoadFunction <WarningNative>("WarningNative");
     errorNative            = _quickloggerlib.LoadFunction <ErrorNative>("ErrorNative");
     traceNative            = _quickloggerlib.LoadFunction <TraceNative>("TraceNative");
     customNative           = _quickloggerlib.LoadFunction <CustomNative>("CustomNative");
     successNative          = _quickloggerlib.LoadFunction <SuccessNative>("SuccessNative");
     getLibVersion          = _quickloggerlib.LoadFunction <GetLibVersionNative>("GetLibVersionNative");
     getProviderNamesNative = _quickloggerlib.LoadFunction <GetProviderNamesNative>("GetProviderNamesNative");
     getLastErrorNative     = _quickloggerlib.LoadFunction <GetLastErrorNative>("GetLastError");
 }