Esempio n. 1
0
            private void DoAction <T>(Action <T> handler, Action <T> delegation, T argument)
            {
                GeometryPipeline current = this.Current;
                GeometryPipeline next    = this.Next;

                ForwardingSegment.DoAction <T>(handler, new Action(current.Reset), delegation, new Action(next.Reset), argument);
            }
Esempio n. 2
0
            private void DoAction(Action handler, Action delegation)
            {
                GeometryPipeline current = this.Current;
                GeometryPipeline next    = this.Next;

                ForwardingSegment.DoAction(handler, new Action(current.Reset), delegation, new Action(next.Reset));
            }
Esempio n. 3
0
        /// <summary>
        /// Creates a SpatialBuilder for this implemenation
        /// </summary>
        /// <returns>
        /// The SpatialBuilder created.
        /// </returns>
        public override SpatialBuilder CreateBuilder()
        {
            var geography = new GeographyBuilderImplementation(this);
            var geometry  = new GeometryBuilderImplementation(this);
            var input     = new ForwardingSegment(geography, geometry);

            return(new SpatialBuilder(input, input, geography, geometry));
        }
        public override SpatialBuilder CreateBuilder()
        {
            GeographyBuilderImplementation currentGeography = new GeographyBuilderImplementation(this);
            GeometryBuilderImplementation  currentGeometry  = new GeometryBuilderImplementation(this);
            ForwardingSegment segment = new ForwardingSegment(currentGeography, currentGeometry);

            return(new SpatialBuilder((GeographyPipeline)segment, (GeometryPipeline)segment, currentGeography, currentGeometry));
        }
Esempio n. 5
0
 /// <summary>
 /// Run one action on a Geography pipeline
 /// </summary>
 /// <param name="handler">what to do at this stage of the pipeline</param>
 /// <param name="delegation">what the rest of the pipeline should do</param>
 private void DoAction(Action handler, Action delegation)
 {
     ForwardingSegment.DoAction(handler, Current.Reset, delegation, Next.Reset);
 }
Esempio n. 6
0
 /// <summary>
 /// Run one action on a Geography pipeline
 /// </summary>
 /// <typeparam name="T">The type taken and returned by the transform style methods.</typeparam>
 /// <param name="handler">what to do at this stage of the pipeline</param>
 /// <param name="delegation">what the rest of the pipeline should do</param>
 /// <param name="argument">The argument to pass to both this node and the rest of the pipeline</param>
 private void DoAction <T>(Action <T> handler, Action <T> delegation, T argument)
 {
     ForwardingSegment.DoAction(handler, Current.Reset, delegation, Next.Reset, argument);
 }
Esempio n. 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GeometryForwarder"/> class.
 /// </summary>
 /// <param name="segment">The segment.</param>
 public GeometryForwarder(ForwardingSegment segment)
 {
     this.segment = segment;
 }
Esempio n. 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GeographyForwarder"/> class.
 /// </summary>
 /// <param name="segment">The segment.</param>
 public GeographyForwarder(ForwardingSegment segment)
 {
     this.segment = segment;
 }