public ContractContext(IContextBundle bundle, IContractBundle contractBundle, IBoilerplateContext <TResult> originalContext) { this.bundle = bundle; this.contractBundle = contractBundle; this.originalContext = originalContext; }
public TypeAccessBuilder(IIdentity identity, IContextBundle bundle, IContractBundle contractBundle, IBoilerplateContext context) : base(bundle) { this.identity = identity; this.contractBundle = contractBundle; this.context = context; }
private static bool TryUseType <T>(IBoilerplateContext boilerplate, Action useType) { try { boilerplate.Open <T>().AndDo((context, value) => { useType(); }); } catch (OperationWasNotSuccessfulException) { return(true); } return(false); }
public ContractHandledContext(IContextBundle bundle, IContractBundle contractBundle, IBoilerplateContext <TResult> originalContext) : base(bundle, contractBundle, originalContext) { }