Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ static string GetConfiguredValueOrFallback(IConfiguration configuration, string
/// Attempts to derive the required configuration parameters automatically from the Azure Functions related attributes via
/// reflection.
/// </summary>
[ObsoleteEx(
Message = "The static hosting model has been deprecated. Refer to the documentation for details on how to use class-instance approach instead.",
RemoveInVersion = "3",
TreatAsErrorFromVersion = "2")]
public static ServiceBusTriggeredEndpointConfiguration FromAttributes()
{
var serviceBusTriggerAttribute = ReflectionHelper.FindBusTriggerAttribute();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ namespace NServiceBus
where T : NServiceBus.Serialization.SerializationDefinition, new () { }
protected NServiceBus.TransportExtensions<TTransport> UseTransport<TTransport>()
where TTransport : NServiceBus.Transport.TransportDefinition, new () { }
[System.Obsolete("The static hosting model has been deprecated. Refer to the documentation for deta" +
"ils on how to use class-instance approach instead. Will be treated as an error f" +
"rom version 2.0.0. Will be removed in version 3.0.0.", false)]
public static NServiceBus.ServiceBusTriggeredEndpointConfiguration FromAttributes() { }
}
}