{"action":"created","issue":{"url":"https://api.github.com/repos/BotBuilderCommunity/botbuilder-community-dotnet/issues/141","repository_url":"https://api.github.com/repos/BotBuilderCommunity/botbuilder-community-dotnet","labels_url":"https://api.github.com/repos/BotBuilderCommunity/botbuilder-community-dotnet/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/BotBuilderCommunity/botbuilder-community-dotnet/issues/141/comments","events_url":"https://api.github.com/repos/BotBuilderCommunity/botbuilder-community-dotnet/issues/141/events","html_url":"https://github.com/BotBuilderCommunity/botbuilder-community-dotnet/issues/141","id":482570926,"node_id":"MDU6SXNzdWU0ODI1NzA5MjY=","number":141,"title":"[Question] How to implement Transcript store on Twitter Adapter","user":{"login":"fercom","id":19654168,"node_id":"MDQ6VXNlcjE5NjU0MTY4","avatar_url":"https://avatars0.githubusercontent.com/u/19654168?v=4","gravatar_id":"","url":"https://api.github.com/users/fercom","html_url":"https://github.com/fercom","followers_url":"https://api.github.com/users/fercom/followers","following_url":"https://api.github.com/users/fercom/following{/other_user}","gists_url":"https://api.github.com/users/fercom/gists{/gist_id}","starred_url":"https://api.github.com/users/fercom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fercom/subscriptions","organizations_url":"https://api.github.com/users/fercom/orgs","repos_url":"https://api.github.com/users/fercom/repos","events_url":"https://api.github.com/users/fercom/events{/privacy}","received_events_url":"https://api.github.com/users/fercom/received_events","type":"User","site_admin":false},"labels":[{"id":1026137383,"node_id":"MDU6TGFiZWwxMDI2MTM3Mzgz","url":"https://api.github.com/repos/BotBuilderCommunity/botbuilder-community-dotnet/labels/question","name":"question","color":"d876e3","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2019-08-19T23:16:53Z","updated_at":"2019-09-10T17:16:44Z","closed_at":"2019-09-05T11:57:06Z","author_association":"NONE","body":"How do I implement a transcript logger on the  [twitter adapter](https://github.com/BotBuilderCommunity/botbuilder-community-dotnet/tree/develop/libraries/Bot.Builder.Community.Adapters.Twitter)?, I am using [Entity framework transcript store](https://github.com/BotBuilderCommunity/botbuilder-community-dotnet/tree/develop/libraries/Bot.Builder.Community.Storage.EntityFramework) but I am only able to store outgoing messages with the following code:\r\n`((TwitterAdapter)_adapter).ContinueConversationAsync(_appId, conversationReference, BotCallback, default(CancellationToken));`\r\nand not able to store incoming messages, how can I do it?\r\n"},"comment":{"url":"https://api.github.com/repos/BotBuilderCommunity/botbuilder-community-dotnet/issues/comments/530035364","html_url":"https://github.com/BotBuilderCommunity/botbuilder-community-dotnet/issues/141#issuecomment-530035364","issue_url":"https://api.github.com/repos/BotBuilderCommunity/botbuilder-community-dotnet/issues/141","id":530035364,"node_id":"MDEyOklzc3VlQ29tbWVudDUzMDAzNTM2NA==","user":{"login":"fercom","id":19654168,"node_id":"MDQ6VXNlcjE5NjU0MTY4","avatar_url":"https://avatars0.githubusercontent.com/u/19654168?v=4","gravatar_id":"","url":"https://api.github.com/users/fercom","html_url":"https://github.com/fercom","followers_url":"https://api.github.com/users/fercom/followers","following_url":"https://api.github.com/users/fercom/following{/other_user}","gists_url":"https://api.github.com/users/fercom/gists{/gist_id}","starred_url":"https://api.github.com/users/fercom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fercom/subscriptions","organizations_url":"https://api.github.com/users/fercom/orgs","repos_url":"https://api.github.com/users/fercom/repos","events_url":"https://api.github.com/users/fercom/events{/privacy}","received_events_url":"https://api.github.com/users/fercom/received_events","type":"User","site_admin":false},"created_at":"2019-09-10T17:16:44Z","updated_at":"2019-09-10T17:16:44Z","author_association":"NONE","body":"@tmarkovski Ok, thanks, it is working now with the last nuget version (4.5.6).\r\n\r\nFor future references:\r\nin the ConfigureServices Method you must have this:\r\n```\r\n  var store = new EntityFrameworkTranscriptStore(connection);\r\n            services.AddSingleton<ITranscriptStore>(store);\r\n```\r\n\r\nand the Configure method must be something like this:\r\n  ```\r\n   public void Configure(IApplicationBuilder app, IHostingEnvironment env, ITranscriptStore transcriptLogger)\r\n        {\r\n            if (env.IsDevelopment())\r\n            {\r\n                app.UseDeveloperExceptionPage();\r\n            }\r\n            else\r\n            {\r\n                app.UseHsts();\r\n            }\r\n\r\n            app.UseDefaultFiles();\r\n            app.UseStaticFiles();\r\n\r\n            //app.UseHttpsRedirection();\r\n            app.UseMvc();\r\n            app.UseTwitterAdapter();\r\n\r\n            app.ApplicationServices.GetRequiredService<TwitterAdapter>().Use(new TranscriptLoggerMiddleware(transcriptLogger));\r\n        }\r\n```"}}
{"actor":{"display_login":"fercom"}}