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

How to use ActorCustomContract with Collection #1

Open
jefersonmanjos opened this issue Apr 24, 2018 · 5 comments
Open

How to use ActorCustomContract with Collection #1

jefersonmanjos opened this issue Apr 24, 2018 · 5 comments

Comments

@jefersonmanjos
Copy link

Hey @amanbha I'm trying to use you example with collection without success. This is my DataContract.

public interface IActor2 : IActor { Task<List<IProfile>> SetProfile(IProfile profile); }

The only way that is work, it's if I use CollectionDataContract like this:

public interface IListProfile : IList<IProfile>
{

}
public class ListProfile : List<IProfile>, IListProfile
{

}

And then:

public interface IActor2 : IActor
{
	Task<ListProfile> SetProfile(IProfile profile);
}

Do you have a better way to do this?

Thanks man!

@amanbha
Copy link
Owner

amanbha commented Apr 24, 2018

@jefersonmanjos Could you please share the code which you have written using the example?

@jefersonmanjos
Copy link
Author

Hey @amanbha, yes I can share. This is the project I'm using to test.
ApplicationSample.zip

@jefersonmanjos
Copy link
Author

Hey @amanbha did you have time to look at the code?

Thanks

@amanbha
Copy link
Owner

amanbha commented May 2, 2018

@jefersonmanjos , sorry I'd didn't get time to look at your code yet, will try to look at it.

@jefersonmanjos
Copy link
Author

@amanbha, no problem. Thanks for your help.

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

No branches or pull requests

2 participants