Created
February 27, 2017 13:01
-
-
Save rahulsahay19/13ff9f0e59add7b24ebe794e2789aa4d to your computer and use it in GitHub Desktop.
RegisterTypes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void RegisterTypes(IUnityContainer container) | |
{ | |
// NOTE: To load from web.config uncomment the line below. Make sure to add a Microsoft.Practices.Unity.Configuration to the using statements. | |
//container.LoadConfiguration(); | |
// TODO: Register your types here | |
/*Working Piece inline*/ | |
container.RegisterType<IMovieServiceAsync>( | |
new TransientLifetimeManager(), | |
new InjectionFactory( | |
(c) => new ChannelFactory<IMovieServiceAsync>("IMovieService").CreateChannel())); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment