コード例 #1
0
 public TaxAgencyReceivePort()
 {
     Name = ReceivePortName.Offwards(Party.TaxAgency);
     ReceiveLocations.Add(
         ReceiveLocation(
             l => {
         l.Name            = ReceiveLocationName.About(MessageName.Statement).FormattedAs.Xml;
         l.Enabled         = false;
         l.ReceivePipeline = new ReceivePipeline <PassThruReceive>(
             pl => {
             pl.Decoder <PolicyRunnerComponent>(
                 c => {
                 c.Enabled       = true;
                 c.ExecutionMode = PluginExecutionMode.Deferred;
                 c.Policy        = Policy <Policies.Send.Claim.ProcessResolver> .Name;
             });
         });
         l.Transport.Adapter  = new FileAdapter.Inbound(a => { a.ReceiveFolder = @"c:\files\drops"; });
         l.Transport.Host     = Host.ISOLATED_HOST;
         l.Transport.Schedule = new Schedule {
             StartDate     = new DateTime(2015, 2, 17),
             StopDate      = new DateTime(2015, 2, 17).AddDays(12),
             ServiceWindow = new ServiceWindow {
                 StartTime = new Time(13, 15),
                 StopTime  = new Time(14, 15)
             }
         };
     })
         );
 }
コード例 #2
0
 public UnitTestReceivePort()
 {
     Name = ReceivePortName.Offwards("UnitTest");
     ReceiveLocations.Add(
         new UnitTestBatchAddPartReceiveLocation(),
         new UnitTestClaimDeskAnyReceiveLocation(),
         new UnitTestClaimDeskXmlReceiveLocation(),
         new UnitTestInputMessageReceiveLocation());
 }
コード例 #3
0
 public TestReferencedReceivePort()
 {
     Name = "MyTestReferencedReceivePort";
     ReceiveLocations.Add(new TestReferencedReceiveLocation());
 }
 public StandaloneReceivePort()
 {
     Name = ReceivePortName.Offwards("Job");
     ReceiveLocations.Add(new StandaloneReceiveLocation());
 }
 public OneWayReceivePortStub()
 {
     Name = ReceivePortName.Offwards("Stub");
     ReceiveLocations.Add(new OneWayReceiveLocationStub());
 }
コード例 #6
0
 public OneWayReceivePort()
 {
     Name        = "OneWayReceivePort";
     Description = "Some Useless One-Way Test Receive Port";
     ReceiveLocations.Add(new OneWayReceiveLocation());
 }
コード例 #7
0
 public TwoWayReceivePort()
 {
     Name        = "TwoWayReceivePort";
     Description = "Some Useless Two-Way Test Receive Port";
     ReceiveLocations.Add(new TwoWayReceiveLocation());
 }
コード例 #8
0
 public ClaimReceivePort()
 {
     Name = ReceivePortName.Offwards("Claim");
     ReceiveLocations.Add(new ClaimReceiveLocation());
 }
コード例 #9
0
 public ContentReceivePort()
 {
     Name = ReceivePortName.Offwards("Batch");
     ReceiveLocations.Add(new ContentReceiveLocation());
 }
 public TaxAgencyReceivePort()
 {
     Name = ReceivePortName.Offwards("TaxAgency");
     ReceiveLocations.Add(new TaxAgencyReceiveLocation());
 }
 public PartReceivePortStub()
 {
     Name = ReceivePortName.Offwards("Stub");
     ReceiveLocations.Add(new PartReceiveLocationStub());
 }