-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(all): upgrade to Olreans RC1
#25
feat(all): upgrade to Olreans RC1
#25
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do the two minor changes before we merge it. Thanks! 👍
src/SignalR.Orleans/Extensions.cs
Outdated
|
||
return builder.AddMemoryGrainStorage(Constants.STORAGE_PROVIDER) | ||
.AddSimpleMessageStreamProvider(Constants.STREAM_PROVIDER) | ||
.ConfigureApplicationParts(parts => parts.AddFromAppDomain().AddFromApplicationBaseDirectory()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this line to the previous one. Load from appdomain/base directory impose a restriction.
Load the current assembly is the correct way if doing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it ok if i will do it like this:
.ConfigureApplicationParts(parts => parts.AddApplicationPart(Assembly.GetExecutingAssembly()).WithReferences())
instead of specifing an actual class:
.ConfigureApplicationParts(parts => parts.AddApplicationPart(typeof(IClientGrain).Assembly).WithReferences())
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Executing assembly is where the Main() entrypoint is. The way it is, we ensure the assembly is loaded properly to avoid problems of assembly loading/binding at runtime in Orleans.
src/SignalR.Orleans/Extensions.cs
Outdated
builder.Services.AddSingleton(typeof(HubLifetimeManager<>), typeof(OrleansHubLifetimeManager<>)); | ||
return builder; | ||
return builder.AddSimpleMessageStreamProvider(Constants.STREAM_PROVIDER) | ||
.ConfigureApplicationParts(parts => parts.AddFromAppDomain().AddFromApplicationBaseDirectory()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as before.
No description provided.