示例#1
0
 public void Bind(params ICreateExecutableMapping[] configurations)
 {
     foreach (var sourceContext in SourceContexts.OfType <IBindable>())
     {
         sourceContext.Bind(configurations);
     }
     foreach (var sourcedConvention in SourcedConventions)
     {
         sourcedConvention.Bind(configurations);
     }
 }
示例#2
0
 public void Accept(IVisitCacheable visitor)
 {
     foreach (var sourceContext in SourceContexts.OfType <ICacheable>())
     {
         sourceContext.Accept(visitor);
     }
     foreach (var cachedDestinationProp in DestinationProperties.OfType <ICacheable>())
     {
         cachedDestinationProp.Accept(visitor);
     }
     visitor.Visit(this);
 }