Ejemplo n.º 1
0
        public static ICommunicationModel Build(Action <CommunicationModelBuilder> buildAction)
        {
            var builder = new CommunicationModelBuilder();

            buildAction(builder);
            return(builder.Model);
        }
Ejemplo n.º 2
0
 public static void Refine(CommunicationModelBuilder builder)
 {
     foreach (var serviceDefinition in builder.Model.Services)
     {
         FindMethods(serviceDefinition);
         FindEvents(serviceDefinition);
     }
 }
Ejemplo n.º 3
0
        public static ICommunicationModel Build(Action <CommunicationModelBuilder> buildAction)
        {
            var builder = new CommunicationModelBuilder();

            buildAction(builder);
            ModelRefiner.Refine(builder);
            var model = builder.Model;

            //ValidateModel(model);
            return(model);
        }