Ejemplo n.º 1
0
 public Operation(string debugText, Action action, IExecutionInfo executionInfo, int maxTransientExceptions = 5)
 {
     Operation < > 4__this = this;
     ArgumentValidator.ThrowIfNullOrEmpty("debugText", debugText);
     ArgumentValidator.ThrowIfNull("action", action);
     ArgumentValidator.ThrowIfNull("executionInfo", executionInfo);
     ArgumentValidator.ThrowIfZeroOrNegative("maxTransientExceptions", maxTransientExceptions);
     this.debugText              = debugText;
     this.executionInfo          = executionInfo;
     this.maxTransientExceptions = maxTransientExceptions;
     this.action = delegate()
     {
         < > 4__this.ActionWrapper(action);
     };
 public ResourceTrackingOperation(IResourceMeter resourceMeter, IExecutionInfo executionInfo, int maxTransientExceptions = 5) : base(ResourceTrackingOperation.GetDebugInfo(resourceMeter), ResourceTrackingOperation.GetResourceTrackingAction(resourceMeter), executionInfo, maxTransientExceptions)
 {
     this.resourceMeter = resourceMeter;
 }