Ejemplo n.º 1
0
        public OperationFactory([NotNull] IDependencyProvider dependencyProvider, [NotNull] IErrorHandler errorHandler)
        {
            if (dependencyProvider == null)
            {
                throw new ArgumentNullException(nameof(dependencyProvider));
            }
            if (errorHandler == null)
            {
                throw new ArgumentNullException(nameof(errorHandler));
            }

            _sharedContext = new OperationSharedContext(dependencyProvider, errorHandler);
        }
Ejemplo n.º 2
0
 public OperationContext([NotNull] object owner, [NotNull] OperationSharedContext sharedContext)
 {
     Owner  = owner ?? throw new ArgumentNullException(nameof(owner));
     Shared = sharedContext ?? throw new ArgumentNullException(nameof(sharedContext));
 }