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; }
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; }
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)); }
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; }
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; }
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)); }
public DefaultEventBus(IIndex <string, IEnumerable <IEventHandler> > eventHandlers, IExceptionPolicy exceptionPolicy) { _eventHandlers = eventHandlers; _exceptionPolicy = exceptionPolicy; }
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; }
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; }
public DefaultEventBus(Func<IEnumerable<IEventHandler>> eventHandlers, IExceptionPolicy exceptionPolicy) { _eventHandlers = eventHandlers; _exceptionPolicy = exceptionPolicy; }
public DefaultEventBus(IIndex<string, IEnumerable<IEventHandler>> eventHandlers, IExceptionPolicy exceptionPolicy) { _eventHandlers = eventHandlers; _exceptionPolicy = exceptionPolicy; }
/// <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); }
public DefaultOrchardEventBus(Func<IEnumerable<IEventHandler>> eventHandlers, IExceptionPolicy exceptionPolicy) { _eventHandlers = eventHandlers; _exceptionPolicy = exceptionPolicy; T = NullLocalizer.Instance; }
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)); }
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)); }
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)); }