本文整理汇总了C#中Configure.DefineEndpointName方法的典型用法代码示例。如果您正苦于以下问题:C# Configure.DefineEndpointName方法的具体用法?C# Configure.DefineEndpointName怎么用?C# Configure.DefineEndpointName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Configure
的用法示例。
在下文中一共展示了Configure.DefineEndpointName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Usage
Usage(Configure configure)
{
#region EndpointNameCode
// To customize the endpoint name via code using the DefineEndpointName method,
// it is important to call it first, right after the With() configuration entry point.
configure.DefineEndpointName("MyEndpoint");
#endregion
}
示例2: ConfigureBus
public void ConfigureBus(Configure config, string endpointName, IWindsorContainer container)
{
config.DefineEndpointName(endpointName);
config.CastleWindsorBuilder(container);
//config.UseNHibernateTimeoutPersister();
config.UseNHibernateSubscriptionPersister();
config.DisableTimeoutManager();
config.DefiningCommandsAs(t => t.GetInterfaces().Contains(typeof(Contracts.ICommand)));
config.DefiningEventsAs(t => t.GetInterfaces().Contains(typeof(Contracts.IEvent)));
config.SetEndpointSLA(TimeSpan.FromSeconds(600));
config.UnicastBus();
}
示例3: ConfigureNServiceBus
private void ConfigureNServiceBus(Configure configuration, IWindsorContainer container)
{
Func<string> connectionStringFactory = GetConnectionStringFactory("NServiceBus.Persistence");
var nServiceBusDbName = ConfigurationManager.AppSettings["NServiceBus.Persistence.RavenDbName"];
configuration
.DefineEndpointName("Ddd.Template.Denormalizer")
.CastleWindsorBuilder(container)
.RavenPersistence(connectionStringFactory, nServiceBusDbName)
.RunTimeoutManager()
.UseRavenTimeoutPersister()
.JsonSerializer()
.MsmqTransport()
.IsTransactional(true)
.PurgeOnStartup(false)
.UnicastBus()
.CreateBus()
.Start();
}
示例4: ConfigureNServiceBus
protected virtual void ConfigureNServiceBus(Configure configuration, IWindsorContainer container)
{
Func<string> connectionStringFactory = GetConnectionStringFactory("NServiceBus.Persistence");
configuration
.DefineEndpointName("Ddd.Template.Domain")
.CastleWindsorBuilder(container)
.JsonSerializer()
.MsmqTransport()
.IsTransactional(true)
.PurgeOnStartup(false)
.RavenPersistence(connectionStringFactory, "Ddd.Template.NServiceBus.domain")
.RunTimeoutManager()
.UseRavenTimeoutPersister()
.RavenSubscriptionStorage()
.UnicastBus()
.CreateBus()
.Start();
}