protected virtual TransportInfo CreateTransportInfo(SendPortTransport transport, bool primary, bool orderedDelivery)
        {
            var transportInfo = new TransportInfo {
                Address = transport.Adapter.Address,
                // TODO DeliveryNotification = 0,
                FromTime        = transport.ServiceWindow.StartTime,
                OrderedDelivery = orderedDelivery,
                Primary         = primary,
                RetryCount      = transport.RetryPolicy.Count,
                RetryInterval   = (int)transport.RetryPolicy.Interval.TotalMinutes,
                SendHandler     = new SendHandlerRef {
                    // TODO HostTrusted = ,
                    Name          = transport.Host,
                    TransportType = transport.Adapter.ProtocolType
                },
                ServiceWindowEnabled = transport.ServiceWindow.Enabled,
                ToTime            = transport.ServiceWindow.StopTime,
                TransportType     = transport.Adapter.ProtocolType,
                TransportTypeData = ((IAdapterBindingSerializerFactory)transport.Adapter).GetAdapterBindingSerializer().Serialize()
            };

            return(transportInfo);
        }
Exemplo n.º 2
0
 public virtual string ResolveHost <TNamingConvention>(SendPortTransport <TNamingConvention> transport)
     where TNamingConvention : class
 {
     return(_name);
 }
Exemplo n.º 3
0
 internal new string ResolveHost <TNamingConvention>(SendPortTransport <TNamingConvention> transport)
     where TNamingConvention : class
 {
     return(base.ResolveHost(transport));
 }
Exemplo n.º 4
0
 public override string ResolveHost <TNamingConvention>(SendPortTransport <TNamingConvention> transport)
 {
     return(Platform.Settings.HostNameProvider.TransmittingHost);
 }