예제 #1
0
 public UnhandledExceptionFilter(
     IExceptionPolicy exceptionPolicy,
     IOrchardServices orchardServices,
     Lazy<IEnumerable<IFilterProvider>> filters) {
     _exceptionPolicy = exceptionPolicy;
     _orchardServices = orchardServices;
     _filterProviders = filters;
     Logger = NullLogger.Instance;
 }
 public UnhandledExceptionFilter(
     IExceptionPolicy exceptionPolicy,
     ICoeveryServices coeveryServices,
     Lazy<IEnumerable<IFilterProvider>> filters)
 {
     _exceptionPolicy = exceptionPolicy;
     _coeveryServices = coeveryServices;
     _filterProviders = filters;
     Logger = NullLogger.Instance;
 }
예제 #3
0
        public AppVersionController(IAppVersionService appVersionService,
            ILocalizationService localizationService, IActivityLogService activityLogService,
            IPermissionService permissionService, IExceptionPolicy exceptionPolicy) {
            this._appVersionService = appVersionService;

            this._localizationService = localizationService;
            this._activityLogService = activityLogService;
            this._permissionService = permissionService;
            this._exceptionPolicy = exceptionPolicy;
        }
예제 #4
0
 public RasEnumConnectionsService(IRasApi32 api, IDeviceTypeFactory deviceTypeFactory, IExceptionPolicy exceptionPolicy, IStructArrayFactory structFactory, IServiceProvider serviceLocator)
 {
     this.api = api ?? throw new ArgumentNullException(nameof(api));
     this.deviceTypeFactory = deviceTypeFactory ?? throw new ArgumentNullException(nameof(deviceTypeFactory));
     this.exceptionPolicy   = exceptionPolicy ?? throw new ArgumentNullException(nameof(exceptionPolicy));
     this.structFactory     = structFactory ?? throw new ArgumentNullException(nameof(structFactory));
     this.serviceLocator    = serviceLocator ?? throw new ArgumentNullException(nameof(serviceLocator));
 }
예제 #5
0
        public Weblog(string traceCategory, ILogger logger, string exceptionPolicyName, IExceptionPolicy exceptionPolicy, int frameToSkip)
        {
            Check.Argument.IsNotNull(traceCategory, "traceCategory");
            Check.Argument.IsNotNull(logger, "logger");
            Check.Argument.IsNotNull(exceptionPolicyName, "exceptionPolicyName");
            Check.Argument.IsNotNull(exceptionPolicy, "exceptionPolicy");
            Check.Argument.IsNotNegativeOrZero(frameToSkip, "frameToSkip");

            _traceCategory       = traceCategory;
            _logger              = logger;
            _exceptionPolicyName = exceptionPolicyName;
            _exceptionPolicy     = exceptionPolicy;
            _frameToSkip         = frameToSkip;
        }
예제 #6
0
 public DefaultTomeltEventBus(IIndex <string, IEnumerable <IEventHandler> > eventHandlers, IExceptionPolicy exceptionPolicy)
 {
     _eventHandlers   = eventHandlers;
     _exceptionPolicy = exceptionPolicy;
     T = NullLocalizer.Instance;
 }
 /// <summary>
 /// Adds the exception policy.
 /// </summary>
 /// <param name="exceptionPolicy">The exception policy.</param>
 public void AddExceptionPolicy(IExceptionPolicy exceptionPolicy)
 {
     _exceptionPolicies.Add(exceptionPolicy);
 }
 public DefaultOrchardEventBus(Func<IEnumerable<IEventHandler>> eventHandlers, IExceptionPolicy exceptionPolicy, IProfilerService profiler) {
         _eventHandlers = eventHandlers;
         _exceptionPolicy = exceptionPolicy;
         _profiler = profiler;
         T = NullLocalizer.Instance;
     }
예제 #9
0
 public RasDialParamsBuilder(IRasApi32 api, IStructFactory structFactory, IExceptionPolicy exceptionPolicy)
 {
     this.api             = api ?? throw new ArgumentNullException(nameof(api));
     this.structFactory   = structFactory ?? throw new ArgumentNullException(nameof(structFactory));
     this.exceptionPolicy = exceptionPolicy ?? throw new ArgumentNullException(nameof(exceptionPolicy));
 }
 public RasConnectionNotificationService(IRasApi32 rasApi32, IRasConnectionNotificationCallbackHandler callbackHandler, IExceptionPolicy exceptionPolicy, IRegisteredCallbackFactory callbackFactory)
 {
     this.rasApi32        = rasApi32 ?? throw new ArgumentNullException(nameof(rasApi32));
     this.callbackHandler = callbackHandler ?? throw new ArgumentNullException(nameof(callbackHandler));
     this.exceptionPolicy = exceptionPolicy ?? throw new ArgumentNullException(nameof(exceptionPolicy));
     this.callbackFactory = callbackFactory ?? throw new ArgumentNullException(nameof(callbackFactory));
 }
예제 #11
0
 public DefaultEventBus(IIndex <string, IEnumerable <IEventHandler> > eventHandlers, IExceptionPolicy exceptionPolicy)
 {
     _eventHandlers   = eventHandlers;
     _exceptionPolicy = exceptionPolicy;
 }
예제 #12
0
        public RasDialService(IRasApi32 api, IRasHangUp hangUpService, IRasDialExtensionsBuilder extensionsBuilder, IRasDialParamsBuilder paramsBuilder, IExceptionPolicy exceptionPolicy, IRasDialCallbackHandler callbackHandler, ITaskCompletionSourceFactory completionSourceFactory, ITaskCancellationSourceFactory cancellationSourceFactory)
        {
            this.api                       = api ?? throw new ArgumentNullException(nameof(api));
            this.hangUpService             = hangUpService ?? throw new ArgumentNullException(nameof(hangUpService));
            this.extensionsBuilder         = extensionsBuilder ?? throw new ArgumentNullException(nameof(extensionsBuilder));
            this.paramsBuilder             = paramsBuilder ?? throw new ArgumentNullException(nameof(paramsBuilder));
            this.exceptionPolicy           = exceptionPolicy ?? throw new ArgumentNullException(nameof(exceptionPolicy));
            this.callbackHandler           = callbackHandler ?? throw new ArgumentNullException(nameof(callbackHandler));
            this.completionSourceFactory   = completionSourceFactory ?? throw new ArgumentNullException(nameof(completionSourceFactory));
            this.cancellationSourceFactory = cancellationSourceFactory ?? throw new ArgumentNullException(nameof(cancellationSourceFactory));

            callback = callbackHandler.OnCallback;
        }
예제 #13
0
 public RasHangUpService(IRasApi32 api, IExceptionPolicy exceptionPolicy)
 {
     this.api             = api ?? throw new ArgumentNullException(nameof(api));
     this.exceptionPolicy = exceptionPolicy ?? throw new ArgumentNullException(nameof(exceptionPolicy));
 }
 public DefaultCoeveryEventBus(IIndex<string, IEnumerable<IEventHandler>> eventHandlers, IExceptionPolicy exceptionPolicy)
 {
     _eventHandlers = eventHandlers;
     _exceptionPolicy = exceptionPolicy;
     T = NullLocalizer.Instance;
 }
예제 #15
0
 public DefaultEventBus(Func<IEnumerable<IEventHandler>> eventHandlers, IExceptionPolicy exceptionPolicy)
 {
     _eventHandlers = eventHandlers;
     _exceptionPolicy = exceptionPolicy;
 }
예제 #16
0
 public DefaultEventBus(IIndex<string, IEnumerable<IEventHandler>> eventHandlers,
      IExceptionPolicy exceptionPolicy)
 {
     _eventHandlers = eventHandlers;
     _exceptionPolicy = exceptionPolicy;
 }
예제 #17
0
 /// <summary>
 /// Adds the exception policy.
 /// </summary>
 /// <param name="exceptionHandler">The exception handler.</param>
 /// <param name="exceptionPolicy">The exception policy.</param>
 public static void AddExceptionPolicy(IExceptionHandler exceptionHandler, IExceptionPolicy exceptionPolicy)
 {
     exceptionHandler.AddExceptionPolicy(exceptionPolicy);
 }
예제 #18
0
 public DefaultOrchardEventBus(Func<IEnumerable<IEventHandler>> eventHandlers, IExceptionPolicy exceptionPolicy) {
     _eventHandlers = eventHandlers;
     _exceptionPolicy = exceptionPolicy;
     T = NullLocalizer.Instance;
 }
예제 #19
0
 public RasGetEapUserDataService(IRasApi32 api, IExceptionPolicy exceptionPolicy, IMarshaller marshaller)
 {
     this.api             = api ?? throw new ArgumentNullException(nameof(api));
     this.exceptionPolicy = exceptionPolicy ?? throw new ArgumentNullException(nameof(exceptionPolicy));
     this.marshaller      = marshaller ?? throw new ArgumentNullException(nameof(marshaller));
 }
예제 #20
0
 public RasGetConnectStatusService(IRasApi32 api, IStructFactory structFactory, IIPAddressConverter ipAddressConverter, IExceptionPolicy exceptionPolicy, IDeviceTypeFactory deviceTypeFactory)
 {
     this.api                = api ?? throw new ArgumentNullException(nameof(api));
     this.structFactory      = structFactory ?? throw new ArgumentNullException(nameof(structFactory));
     this.ipAddressConverter = ipAddressConverter ?? throw new ArgumentNullException(nameof(ipAddressConverter));
     this.exceptionPolicy    = exceptionPolicy ?? throw new ArgumentNullException(nameof(exceptionPolicy));
     this.deviceTypeFactory  = deviceTypeFactory ?? throw new ArgumentNullException(nameof(deviceTypeFactory));
 }
예제 #21
0
 public RasEnumDevicesService(IRasApi32 api, IStructArrayFactory structFactory, IExceptionPolicy exceptionPolicy, IDeviceTypeFactory deviceTypeFactory)
 {
     this.api               = api ?? throw new ArgumentNullException(nameof(api));
     this.structFactory     = structFactory ?? throw new ArgumentNullException(nameof(structFactory));
     this.exceptionPolicy   = exceptionPolicy ?? throw new ArgumentNullException(nameof(exceptionPolicy));
     this.deviceTypeFactory = deviceTypeFactory ?? throw new ArgumentNullException(nameof(deviceTypeFactory));
 }