{"action":"created","comment":{"url":"https://api.github.com/repos/PrismLibrary/Prism/pulls/comments/66839028","id":66839028,"diff_hunk":"@@ -0,0 +1,81 @@\n+﻿using System.Linq;\n+using Prism.Navigation;\n+using Prism.Mvvm;\n+using Prism.Common;\n+using Xamarin.Forms;\n+using Prism.Logging;\n+using Prism.Events;\n+using Prism.Services;\n+using DependencyService = Prism.Services.DependencyService;\n+using Prism.Modularity;\n+using Autofac;\n+using Prism.Autofac.Forms.Modularity;\n+using System;\n+using System.Globalization;\n+using Prism.Autofac.Navigation;\n+using Prism;\n+using Prism.Autofac.Forms;\n+\n+namespace Prism.Autofac\n+{\n+    public abstract class PrismApplication : PrismApplicationBase<IContainer>\n+    {\n+        //const string _navigationServiceName = \"AutofacPageNavigationService\";\n+\n+        public PrismApplication(IPlatformInitializer initializer = null) : base(initializer) { }\n+\n+        protected override void ConfigureViewModelLocator()\n+        {\n+            ViewModelLocationProvider.SetDefaultViewModelFactory((view, type) =>\n+            {\n+                NamedParameter parameter = null;\n+                var page = view as Page;\n+                if (page != null)\n+                {\n+                    var navService = CreateNavigationService();\n+                    ((IPageAware)navService).Page = page;\n+\n+                    parameter = new NamedParameter(\"navigationService\", navService);\n+                }\n+\n+                return Container.Resolve(type, parameter);\n+            });\n+        }\n+\n+        protected override IContainer CreateContainer()\n+        {\n+            var builder = new ContainerBuilder();\n+\n+            builder.RegisterInstance(Logger).As<ILoggerFacade>();\n+            builder.RegisterInstance(ModuleCatalog).As<IModuleCatalog>();\n+\n+            builder.Register(ctx => new ApplicationProvider()).As<IApplicationProvider>().SingleInstance();\n+            builder.Register(ctx => new AutofacPageNavigationService(ctx, ctx.Resolve<IApplicationProvider>(), ctx.Resolve<ILoggerFacade>())).As<INavigationService>();\n+            builder.Register(ctx => new ModuleManager(ctx.Resolve<IModuleInitializer>(), ctx.Resolve<IModuleCatalog>())).As<IModuleManager>();\n+            builder.Register(ctx => new AutofacModuleInitializer(ctx)).As<IModuleInitializer>();\n+            builder.Register(ctx => new EventAggregator()).As<IEventAggregator>();\n+            builder.Register(ctx => new DependencyService()).As<IDependencyService>();\n+            builder.Register(ctx => new PageDialogService(ctx.Resolve<IApplicationProvider>())).As<IPageDialogService>();\n+\n+            return builder.Build();\n+        }\n+\n+        protected override IModuleManager CreateModuleManager()\n+        {\n+            return Container.Resolve<IModuleManager>();\n+        }\n+\n+        protected override INavigationService CreateNavigationService()\n+        {\n+            return Container.Resolve<INavigationService>();","path":"Source/Xamarin/Prism.Autofac.Forms/PrismApplication.cs","position":70,"original_position":70,"commit_id":"3ffdebc3185fa3c2db5321b6512d4f63a60edfde","original_commit_id":"3ffdebc3185fa3c2db5321b6512d4f63a60edfde","user":{"login":"ederbond","id":12549812,"avatar_url":"https://avatars.githubusercontent.com/u/12549812?v=3","gravatar_id":"","url":"https://api.github.com/users/ederbond","html_url":"https://github.com/ederbond","followers_url":"https://api.github.com/users/ederbond/followers","following_url":"https://api.github.com/users/ederbond/following{/other_user}","gists_url":"https://api.github.com/users/ederbond/gists{/gist_id}","starred_url":"https://api.github.com/users/ederbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ederbond/subscriptions","organizations_url":"https://api.github.com/users/ederbond/orgs","repos_url":"https://api.github.com/users/ederbond/repos","events_url":"https://api.github.com/users/ederbond/events{/privacy}","received_events_url":"https://api.github.com/users/ederbond/received_events","type":"User","site_admin":false},"body":"Hummm, ok. I'll change that thanks for the patient to explain the reasons... :+1: ","created_at":"2016-06-13T18:06:18Z","updated_at":"2016-06-13T18:06:18Z","html_url":"https://github.com/PrismLibrary/Prism/pull/636#discussion_r66839028","pull_request_url":"https://api.github.com/repos/PrismLibrary/Prism/pulls/636","_links":{"self":{"href":"https://api.github.com/repos/PrismLibrary/Prism/pulls/comments/66839028"},"html":{"href":"https://github.com/PrismLibrary/Prism/pull/636#discussion_r66839028"},"pull_request":{"href":"https://api.github.com/repos/PrismLibrary/Prism/pulls/636"}}},"pull_request":{"url":"https://api.github.com/repos/PrismLibrary/Prism/pulls/636","id":73486034,"html_url":"https://github.com/PrismLibrary/Prism/pull/636","diff_url":"https://github.com/PrismLibrary/Prism/pull/636.diff","patch_url":"https://github.com/PrismLibrary/Prism/pull/636.patch","issue_url":"https://api.github.com/repos/PrismLibrary/Prism/issues/636","number":636,"state":"open","locked":false,"title":"Implementing Prism.Autofac.Forms","user":{"login":"ederbond","id":12549812,"avatar_url":"https://avatars.githubusercontent.com/u/12549812?v=3","gravatar_id":"","url":"https://api.github.com/users/ederbond","html_url":"https://github.com/ederbond","followers_url":"https://api.github.com/users/ederbond/followers","following_url":"https://api.github.com/users/ederbond/following{/other_user}","gists_url":"https://api.github.com/users/ederbond/gists{/gist_id}","starred_url":"https://api.github.com/users/ederbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ederbond/subscriptions","organizations_url":"https://api.github.com/users/ederbond/orgs","repos_url":"https://api.github.com/users/ederbond/repos","events_url":"https://api.github.com/users/ederbond/events{/privacy}","received_events_url":"https://api.github.com/users/ederbond/received_events","type":"User","site_admin":false},"body":"@brianlagunas Fixed my implementation to use the latest preview version of Xamarin.Forms which is what Prism is built against.\r\n\r\n@joacar I dont think I should provide a service key when registering the PageDialogService implementation since autofac could resolve its interface type when needed..","created_at":"2016-06-12T04:27:09Z","updated_at":"2016-06-13T18:06:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdb79c4ed46e618f506a8ce64dfe68aa6c9aef70","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PrismLibrary/Prism/pulls/636/commits","review_comments_url":"https://api.github.com/repos/PrismLibrary/Prism/pulls/636/comments","review_comment_url":"https://api.github.com/repos/PrismLibrary/Prism/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PrismLibrary/Prism/issues/636/comments","statuses_url":"https://api.github.com/repos/PrismLibrary/Prism/statuses/3ffdebc3185fa3c2db5321b6512d4f63a60edfde","head":{"label":"ederbond:master","ref":"master","sha":"3ffdebc3185fa3c2db5321b6512d4f63a60edfde","user":{"login":"ederbond","id":12549812,"avatar_url":"https://avatars.githubusercontent.com/u/12549812?v=3","gravatar_id":"","url":"https://api.github.com/users/ederbond","html_url":"https://github.com/ederbond","followers_url":"https://api.github.com/users/ederbond/followers","following_url":"https://api.github.com/users/ederbond/following{/other_user}","gists_url":"https://api.github.com/users/ederbond/gists{/gist_id}","starred_url":"https://api.github.com/users/ederbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ederbond/subscriptions","organizations_url":"https://api.github.com/users/ederbond/orgs","repos_url":"https://api.github.com/users/ederbond/repos","events_url":"https://api.github.com/users/ederbond/events{/privacy}","received_events_url":"https://api.github.com/users/ederbond/received_events","type":"User","site_admin":false},"repo":{"id":57519443,"name":"Prism","full_name":"ederbond/Prism","owner":{"login":"ederbond","id":12549812,"avatar_url":"https://avatars.githubusercontent.com/u/12549812?v=3","gravatar_id":"","url":"https://api.github.com/users/ederbond","html_url":"https://github.com/ederbond","followers_url":"https://api.github.com/users/ederbond/followers","following_url":"https://api.github.com/users/ederbond/following{/other_user}","gists_url":"https://api.github.com/users/ederbond/gists{/gist_id}","starred_url":"https://api.github.com/users/ederbond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ederbond/subscriptions","organizations_url":"https://api.github.com/users/ederbond/orgs","repos_url":"https://api.github.com/users/ederbond/repos","events_url":"https://api.github.com/users/ederbond/events{/privacy}","received_events_url":"https://api.github.com/users/ederbond/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ederbond/Prism","description":"Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Windows 10 UWP, and Xamarin Forms.","fork":true,"url":"https://api.github.com/repos/ederbond/Prism","forks_url":"https://api.github.com/repos/ederbond/Prism/forks","keys_url":"https://api.github.com/repos/ederbond/Prism/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ederbond/Prism/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ederbond/Prism/teams","hooks_url":"https://api.github.com/repos/ederbond/Prism/hooks","issue_events_url":"https://api.github.com/repos/ederbond/Prism/issues/events{/number}","events_url":"https://api.github.com/repos/ederbond/Prism/events","assignees_url":"https://api.github.com/repos/ederbond/Prism/assignees{/user}","branches_url":"https://api.github.com/repos/ederbond/Prism/branches{/branch}","tags_url":"https://api.github.com/repos/ederbond/Prism/tags","blobs_url":"https://api.github.com/repos/ederbond/Prism/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ederbond/Prism/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ederbond/Prism/git/refs{/sha}","trees_url":"https://api.github.com/repos/ederbond/Prism/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ederbond/Prism/statuses/{sha}","languages_url":"https://api.github.com/repos/ederbond/Prism/languages","stargazers_url":"https://api.github.com/repos/ederbond/Prism/stargazers","contributors_url":"https://api.github.com/repos/ederbond/Prism/contributors","subscribers_url":"https://api.github.com/repos/ederbond/Prism/subscribers","subscription_url":"https://api.github.com/repos/ederbond/Prism/subscription","commits_url":"https://api.github.com/repos/ederbond/Prism/commits{/sha}","git_commits_url":"https://api.github.com/repos/ederbond/Prism/git/commits{/sha}","comments_url":"https://api.github.com/repos/ederbond/Prism/comments{/number}","issue_comment_url":"https://api.github.com/repos/ederbond/Prism/issues/comments{/number}","contents_url":"https://api.github.com/repos/ederbond/Prism/contents/{+path}","compare_url":"https://api.github.com/repos/ederbond/Prism/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ederbond/Prism/merges","archive_url":"https://api.github.com/repos/ederbond/Prism/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ederbond/Prism/downloads","issues_url":"https://api.github.com/repos/ederbond/Prism/issues{/number}","pulls_url":"https://api.github.com/repos/ederbond/Prism/pulls{/number}","milestones_url":"https://api.github.com/repos/ederbond/Prism/milestones{/number}","notifications_url":"https://api.github.com/repos/ederbond/Prism/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ederbond/Prism/labels{/name}","releases_url":"https://api.github.com/repos/ederbond/Prism/releases{/id}","deployments_url":"https://api.github.com/repos/ederbond/Prism/deployments","created_at":"2016-05-01T05:24:20Z","updated_at":"2016-06-09T12:38:44Z","pushed_at":"2016-06-13T02:28:40Z","git_url":"git://github.com/ederbond/Prism.git","ssh_url":"git@github.com:ederbond/Prism.git","clone_url":"https://github.com/ederbond/Prism.git","svn_url":"https://github.com/ederbond/Prism","homepage":"","size":9897,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"PrismLibrary:master","ref":"master","sha":"002dddc475df26bc050ecf801742e5bb2feefe1d","user":{"login":"PrismLibrary","id":10503161,"avatar_url":"https://avatars.githubusercontent.com/u/10503161?v=3","gravatar_id":"","url":"https://api.github.com/users/PrismLibrary","html_url":"https://github.com/PrismLibrary","followers_url":"https://api.github.com/users/PrismLibrary/followers","following_url":"https://api.github.com/users/PrismLibrary/following{/other_user}","gists_url":"https://api.github.com/users/PrismLibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/PrismLibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrismLibrary/subscriptions","organizations_url":"https://api.github.com/users/PrismLibrary/orgs","repos_url":"https://api.github.com/users/PrismLibrary/repos","events_url":"https://api.github.com/users/PrismLibrary/events{/privacy}","received_events_url":"https://api.github.com/users/PrismLibrary/received_events","type":"Organization","site_admin":false},"repo":{"id":31335300,"name":"Prism","full_name":"PrismLibrary/Prism","owner":{"login":"PrismLibrary","id":10503161,"avatar_url":"https://avatars.githubusercontent.com/u/10503161?v=3","gravatar_id":"","url":"https://api.github.com/users/PrismLibrary","html_url":"https://github.com/PrismLibrary","followers_url":"https://api.github.com/users/PrismLibrary/followers","following_url":"https://api.github.com/users/PrismLibrary/following{/other_user}","gists_url":"https://api.github.com/users/PrismLibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/PrismLibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrismLibrary/subscriptions","organizations_url":"https://api.github.com/users/PrismLibrary/orgs","repos_url":"https://api.github.com/users/PrismLibrary/repos","events_url":"https://api.github.com/users/PrismLibrary/events{/privacy}","received_events_url":"https://api.github.com/users/PrismLibrary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PrismLibrary/Prism","description":"Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Windows 10 UWP, and Xamarin Forms.","fork":false,"url":"https://api.github.com/repos/PrismLibrary/Prism","forks_url":"https://api.github.com/repos/PrismLibrary/Prism/forks","keys_url":"https://api.github.com/repos/PrismLibrary/Prism/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PrismLibrary/Prism/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PrismLibrary/Prism/teams","hooks_url":"https://api.github.com/repos/PrismLibrary/Prism/hooks","issue_events_url":"https://api.github.com/repos/PrismLibrary/Prism/issues/events{/number}","events_url":"https://api.github.com/repos/PrismLibrary/Prism/events","assignees_url":"https://api.github.com/repos/PrismLibrary/Prism/assignees{/user}","branches_url":"https://api.github.com/repos/PrismLibrary/Prism/branches{/branch}","tags_url":"https://api.github.com/repos/PrismLibrary/Prism/tags","blobs_url":"https://api.github.com/repos/PrismLibrary/Prism/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PrismLibrary/Prism/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PrismLibrary/Prism/git/refs{/sha}","trees_url":"https://api.github.com/repos/PrismLibrary/Prism/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PrismLibrary/Prism/statuses/{sha}","languages_url":"https://api.github.com/repos/PrismLibrary/Prism/languages","stargazers_url":"https://api.github.com/repos/PrismLibrary/Prism/stargazers","contributors_url":"https://api.github.com/repos/PrismLibrary/Prism/contributors","subscribers_url":"https://api.github.com/repos/PrismLibrary/Prism/subscribers","subscription_url":"https://api.github.com/repos/PrismLibrary/Prism/subscription","commits_url":"https://api.github.com/repos/PrismLibrary/Prism/commits{/sha}","git_commits_url":"https://api.github.com/repos/PrismLibrary/Prism/git/commits{/sha}","comments_url":"https://api.github.com/repos/PrismLibrary/Prism/comments{/number}","issue_comment_url":"https://api.github.com/repos/PrismLibrary/Prism/issues/comments{/number}","contents_url":"https://api.github.com/repos/PrismLibrary/Prism/contents/{+path}","compare_url":"https://api.github.com/repos/PrismLibrary/Prism/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PrismLibrary/Prism/merges","archive_url":"https://api.github.com/repos/PrismLibrary/Prism/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PrismLibrary/Prism/downloads","issues_url":"https://api.github.com/repos/PrismLibrary/Prism/issues{/number}","pulls_url":"https://api.github.com/repos/PrismLibrary/Prism/pulls{/number}","milestones_url":"https://api.github.com/repos/PrismLibrary/Prism/milestones{/number}","notifications_url":"https://api.github.com/repos/PrismLibrary/Prism/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PrismLibrary/Prism/labels{/name}","releases_url":"https://api.github.com/repos/PrismLibrary/Prism/releases{/id}","deployments_url":"https://api.github.com/repos/PrismLibrary/Prism/deployments","created_at":"2015-02-25T20:54:32Z","updated_at":"2016-06-12T15:23:07Z","pushed_at":"2016-06-13T02:28:40Z","git_url":"git://github.com/PrismLibrary/Prism.git","ssh_url":"git@github.com:PrismLibrary/Prism.git","clone_url":"https://github.com/PrismLibrary/Prism.git","svn_url":"https://github.com/PrismLibrary/Prism","homepage":"","size":10722,"stargazers_count":836,"watchers_count":836,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":298,"mirror_url":null,"open_issues_count":41,"forks":298,"open_issues":41,"watchers":836,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PrismLibrary/Prism/pulls/636"},"html":{"href":"https://github.com/PrismLibrary/Prism/pull/636"},"issue":{"href":"https://api.github.com/repos/PrismLibrary/Prism/issues/636"},"comments":{"href":"https://api.github.com/repos/PrismLibrary/Prism/issues/636/comments"},"review_comments":{"href":"https://api.github.com/repos/PrismLibrary/Prism/pulls/636/comments"},"review_comment":{"href":"https://api.github.com/repos/PrismLibrary/Prism/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PrismLibrary/Prism/pulls/636/commits"},"statuses":{"href":"https://api.github.com/repos/PrismLibrary/Prism/statuses/3ffdebc3185fa3c2db5321b6512d4f63a60edfde"}}}}
{"actor":{"display_login":"ederbond"}}