Skip to content
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

Merged
merged 3 commits into from
Mar 5, 2018
Merged

feat(all): upgrade to Olreans RC1 #25

merged 3 commits into from
Mar 5, 2018

Conversation

claylaut
Copy link
Collaborator

@claylaut claylaut commented Mar 5, 2018

No description provided.

@claylaut claylaut requested a review from galvesribeiro March 5, 2018 10:23
Copy link
Member

@galvesribeiro galvesribeiro left a 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! 👍


return builder.AddMemoryGrainStorage(Constants.STORAGE_PROVIDER)
.AddSimpleMessageStreamProvider(Constants.STREAM_PROVIDER)
.ConfigureApplicationParts(parts => parts.AddFromAppDomain().AddFromApplicationBaseDirectory());
Copy link
Member

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.

Copy link
Collaborator Author

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())

Copy link
Member

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.

builder.Services.AddSingleton(typeof(HubLifetimeManager<>), typeof(OrleansHubLifetimeManager<>));
return builder;
return builder.AddSimpleMessageStreamProvider(Constants.STREAM_PROVIDER)
.ConfigureApplicationParts(parts => parts.AddFromAppDomain().AddFromApplicationBaseDirectory())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as before.

@galvesribeiro galvesribeiro merged commit 8902398 into OrleansContrib:master Mar 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants