OrleansServiceExtensions Methods
ClassMethods26 members
Extensions to
Hosting.IDistributedApplicationBuilder related to Orleans. AddOrleans(IDistributedApplicationBuilder, string)Section titled AddOrleans(IDistributedApplicationBuilder, string)extensionOrleansService Adds an Orleans service to the application.
public static class OrleansServiceExtensions{ public static OrleansService AddOrleans( this IDistributedApplicationBuilder builder, string name) { // ... }}Parameters
builderIDistributedApplicationBuilderThe application builder.namestringThe name of the Orleans service.Returns
OrleansServiceThe Orleans service builder. Returns a model of the clients of an Orleans service.
public static class OrleansServiceExtensions{ public static OrleansServiceClient AsClient( this OrleansService orleansService) { // ... }}Parameters
orleansServiceOrleansServiceThe Orleans serviceReturns
OrleansServiceClientA model of the clients of an Orleans service.WithBroadcastChannel(OrleansService, string, IProviderConfiguration)Section titled WithBroadcastChannel(OrleansService, string, IProviderConfiguration)extensionOrleansService Adds a broadcast channel provider to the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithBroadcastChannel( this OrleansService orleansServiceBuilder, string name, IProviderConfiguration provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.namestringThe name of the provider. This is the name the application will use to resolve the provider.providerIProviderConfigurationThe provider to add.Returns
OrleansServiceThe Orleans service builder.Remarks
This method is not available in polyglot app hosts. Use
OrleansServiceExtensions.WithBroadcastChannel instead.WithBroadcastChannel(OrleansService, string)Section titled WithBroadcastChannel(OrleansService, string)extensionOrleansService Adds a broadcast channel provider to the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithBroadcastChannel( this OrleansService orleansServiceBuilder, string name) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.namestringThe name of the provider. This is the name the application will use to resolve the provider.Returns
OrleansServiceThe Orleans service builder.WithClusterId(OrleansService, string)Section titled WithClusterId(OrleansService, string)extensionOrleansService Sets the ClusterId of the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithClusterId( this OrleansService orleansServiceBuilder, string clusterId) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.clusterIdstringThe ClusterId value.Returns
OrleansServiceThe Orleans service builder.WithClusterId(OrleansService, IResourceBuilder<ParameterResource>)Section titled WithClusterId(OrleansService, IResourceBuilder<ParameterResource>)extensionOrleansService Sets the ClusterId of the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithClusterId( this OrleansService orleansServiceBuilder, IResourceBuilder<ParameterResource> clusterId) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.clusterIdIResourceBuilder<ParameterResource>The ClusterId value.Returns
OrleansServiceThe Orleans service builder.Remarks
This method is not available in polyglot app hosts. Use
OrleansServiceExtensions.WithClusterId instead.WithClustering(OrleansService, IResourceBuilder<IResourceWithConnectionString>)Section titled WithClustering(OrleansService, IResourceBuilder<IResourceWithConnectionString>)extensionOrleansService Configures the Orleans service to use the provided clustering provider.
public static class OrleansServiceExtensions{ public static OrleansService WithClustering( this OrleansService orleansServiceBuilder, IResourceBuilder<IResourceWithConnectionString> provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.providerIResourceBuilder<IResourceWithConnectionString>The provider.Returns
OrleansServiceThe Orleans service builder.WithClustering(OrleansService, IProviderConfiguration)Section titled WithClustering(OrleansService, IProviderConfiguration)extensionOrleansService Configures the Orleans service to use the provided clustering provider.
public static class OrleansServiceExtensions{ public static OrleansService WithClustering( this OrleansService orleansServiceBuilder, IProviderConfiguration provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.providerIProviderConfigurationThe provider.Returns
OrleansServiceThe Orleans service builder.Remarks
This method is not available in polyglot app hosts. Use
OrleansServiceExtensions.WithClustering instead.WithDevelopmentClustering(OrleansService)Section titled WithDevelopmentClustering(OrleansService)extensionOrleansService Configures the Orleans service to use development-only clustering.
public static class OrleansServiceExtensions{ public static OrleansService WithDevelopmentClustering( this OrleansService orleansServiceBuilder) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.Returns
OrleansServiceThe Orleans service builder.WithGrainDirectory(OrleansService, IResourceBuilder<IResourceWithConnectionString>)Section titled WithGrainDirectory(OrleansService, IResourceBuilder<IResourceWithConnectionString>)extensionOrleansService Adds a grain directory provider to the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithGrainDirectory( this OrleansService orleansServiceBuilder, IResourceBuilder<IResourceWithConnectionString> provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.providerIResourceBuilder<IResourceWithConnectionString>The provider to add.Returns
OrleansServiceThe Orleans service builder.Remarks
This resource name is the name the application will use to resolve the provider. This method is not available in polyglot app hosts. Use
OrleansServiceExtensions.WithGrainDirectory instead.WithGrainDirectory(OrleansService, string, IResourceBuilder<IResourceWithConnectionString>)Section titled WithGrainDirectory(OrleansService, string, IResourceBuilder<IResourceWithConnectionString>)extensionOrleansService Adds a grain directory provider to the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithGrainDirectory( this OrleansService orleansServiceBuilder, string name, IResourceBuilder<IResourceWithConnectionString> provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.namestringThe name of the provider. This is the name the application will use to resolve the provider.providerIResourceBuilder<IResourceWithConnectionString>The provider to add.Returns
OrleansServiceThe Orleans service builder.WithGrainDirectory(OrleansService, string, IProviderConfiguration)Section titled WithGrainDirectory(OrleansService, string, IProviderConfiguration)extensionOrleansService Adds a grain directory provider to the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithGrainDirectory( this OrleansService orleansServiceBuilder, string name, IProviderConfiguration provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.namestringThe name of the provider. This is the name the application will use to resolve the provider.providerIProviderConfigurationThe provider to add.Returns
OrleansServiceThe Orleans service builder.Remarks
This method is not available in polyglot app hosts. Use
OrleansServiceExtensions.WithGrainDirectory instead.WithGrainStorage(OrleansService, IResourceBuilder<IResourceWithConnectionString>)Section titled WithGrainStorage(OrleansService, IResourceBuilder<IResourceWithConnectionString>)extensionOrleansService Adds a grain storage provider to the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithGrainStorage( this OrleansService orleansServiceBuilder, IResourceBuilder<IResourceWithConnectionString> provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.providerIResourceBuilder<IResourceWithConnectionString>The provider to add.Returns
OrleansServiceThe Orleans service builder.Remarks
This resource name is the name the application will use to resolve the provider. This method is not available in polyglot app hosts. Use
OrleansServiceExtensions.WithGrainStorage instead.WithGrainStorage(OrleansService, string, IResourceBuilder<IResourceWithConnectionString>)Section titled WithGrainStorage(OrleansService, string, IResourceBuilder<IResourceWithConnectionString>)extensionOrleansService Adds a grain storage provider to the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithGrainStorage( this OrleansService orleansServiceBuilder, string name, IResourceBuilder<IResourceWithConnectionString> provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.namestringThe name of the provider. This is the name the application will use to resolve the provider.providerIResourceBuilder<IResourceWithConnectionString>The provider to add.Returns
OrleansServiceThe Orleans service builder.WithGrainStorage(OrleansService, string, IProviderConfiguration)Section titled WithGrainStorage(OrleansService, string, IProviderConfiguration)extensionOrleansService Adds a grain storage provider to the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithGrainStorage( this OrleansService orleansServiceBuilder, string name, IProviderConfiguration provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.namestringThe name of the provider. This is the name the application will use to resolve the provider.providerIProviderConfigurationThe provider to add.Returns
OrleansServiceThe Orleans service builder.Remarks
This method is not available in polyglot app hosts. Use
OrleansServiceExtensions.WithGrainStorage instead.WithMemoryGrainStorage(OrleansService, string)Section titled WithMemoryGrainStorage(OrleansService, string)extensionOrleansService Adds an in-memory grain storage to the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithMemoryGrainStorage( this OrleansService orleansServiceBuilder, string name) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.namestringThe name of the provider. This is the name the application will use to resolve the provider.Returns
OrleansServiceThe Orleans service builder.WithMemoryReminders(OrleansService)Section titled WithMemoryReminders(OrleansService)extensionOrleansService Configures in-memory reminder storage for the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithMemoryReminders( this OrleansService orleansServiceBuilder) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.Returns
OrleansServiceThe Orleans service builder.WithMemoryStreaming(OrleansService, string)Section titled WithMemoryStreaming(OrleansService, string)extensionOrleansService Adds an in-memory stream provider to the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithMemoryStreaming( this OrleansService orleansServiceBuilder, string name) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.namestringThe name of the provider. This is the name the application will use to resolve the provider.Returns
OrleansServiceThe Orleans service builder.WithReference(IResourceBuilder<T>, OrleansService)Section titled WithReference(IResourceBuilder<T>, OrleansService)extensionIResourceBuilder<T> Adds Orleans to the resource.
public static class OrleansServiceExtensions{ public static IResourceBuilder<T> WithReference<T>( this IResourceBuilder<T> builder, OrleansService orleansService) { // ... }}Parameters
builderIResourceBuilder<T>The builder on which add the Orleans service builder.orleansServiceOrleansServiceThe Orleans service, containing clustering, etc.Returns
IResourceBuilder<T>The resource builder.Exceptions
InvalidOperationExceptionClustering has not been configured.WithReminders(OrleansService, IResourceBuilder<IResourceWithConnectionString>)Section titled WithReminders(OrleansService, IResourceBuilder<IResourceWithConnectionString>)extensionOrleansService Configures reminder storage for the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithReminders( this OrleansService orleansServiceBuilder, IResourceBuilder<IResourceWithConnectionString> provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.providerIResourceBuilder<IResourceWithConnectionString>The reminder storage provider.Returns
OrleansServiceThe Orleans service builder.WithReminders(OrleansService, IProviderConfiguration)Section titled WithReminders(OrleansService, IProviderConfiguration)extensionOrleansService Configures reminder storage for the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithReminders( this OrleansService orleansServiceBuilder, IProviderConfiguration provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.providerIProviderConfigurationThe reminder storage provider to use.Returns
OrleansServiceThe Orleans service builder.Remarks
This method is not available in polyglot app hosts. Use
OrleansServiceExtensions.WithReminders instead.WithServiceId(OrleansService, string)Section titled WithServiceId(OrleansService, string)extensionOrleansService Sets the ServiceId of the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithServiceId( this OrleansService orleansServiceBuilder, string serviceId) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.serviceIdstringThe ServiceId value.Returns
OrleansServiceThe Orleans service builder.WithServiceId(OrleansService, IResourceBuilder<ParameterResource>)Section titled WithServiceId(OrleansService, IResourceBuilder<ParameterResource>)extensionOrleansService Sets the ServiceId of the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithServiceId( this OrleansService orleansServiceBuilder, IResourceBuilder<ParameterResource> serviceId) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.serviceIdIResourceBuilder<ParameterResource>The ServiceId value.Returns
OrleansServiceThe Orleans service builder.Remarks
This method is not available in polyglot app hosts. Use
OrleansServiceExtensions.WithServiceId instead.WithStreaming(OrleansService, IResourceBuilder<IResourceWithConnectionString>)Section titled WithStreaming(OrleansService, IResourceBuilder<IResourceWithConnectionString>)extensionOrleansService Adds a stream provider to the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithStreaming( this OrleansService orleansServiceBuilder, IResourceBuilder<IResourceWithConnectionString> provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.providerIResourceBuilder<IResourceWithConnectionString>The provider to add.Returns
OrleansServiceThe Orleans service builder.Remarks
This resource name is the name the application will use to resolve the provider. This method is not available in polyglot app hosts. Use
OrleansServiceExtensions.WithStreaming instead.WithStreaming(OrleansService, string, IResourceBuilder<IResourceWithConnectionString>)Section titled WithStreaming(OrleansService, string, IResourceBuilder<IResourceWithConnectionString>)extensionOrleansService Adds a stream provider to the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithStreaming( this OrleansService orleansServiceBuilder, string name, IResourceBuilder<IResourceWithConnectionString> provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.namestringThe name of the provider. This is the name the application will use to resolve the provider.providerIResourceBuilder<IResourceWithConnectionString>The provider to add.Returns
OrleansServiceThe Orleans service builder.WithStreaming(OrleansService, string, IProviderConfiguration)Section titled WithStreaming(OrleansService, string, IProviderConfiguration)extensionOrleansService Adds a stream provider to the Orleans service.
public static class OrleansServiceExtensions{ public static OrleansService WithStreaming( this OrleansService orleansServiceBuilder, string name, IProviderConfiguration provider) { // ... }}Parameters
orleansServiceBuilderOrleansServiceThe target Orleans service builder.namestringThe name of the provider. This is the name the application will use to resolve the provider.providerIProviderConfigurationThe provider to add.Returns
OrleansServiceThe Orleans service builder.Remarks
This method is not available in polyglot app hosts. Use
OrleansServiceExtensions.WithStreaming instead.