Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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);
 }