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
System.NotImplementedException occurred | |
Message=NotImplementedException | |
StackTrace: | |
at System.Net.HttpWebRequest.set_CookieContainer(CookieContainer value) | |
at RestSharp.Http.AppendCookies(HttpWebRequest webRequest) | |
at RestSharp.Http.ConfigureAsyncWebRequest(String method, Uri url) | |
at RestSharp.Http.GetStyleMethodInternalAsync(String method, Action`1 callback) | |
at RestSharp.Http.GetAsync(Action`1 action) | |
at RestSharp.RestClient.ExecuteAsync(IRestRequest request, Action`2 callback) | |
at RestSharp.RestClient.ExecuteAsync[T](IRestRequest request, Action`2 callback) |
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 interface IPhoenixHostBuilder | |
{ | |
IPhoenixHostBuilder UseControllerLocator<TLocator>() where TLocator : IControllerLocator; | |
IPhoenixHostBuilder UseControllerLocator<TLocator>(TLocator locator) where TLocator : IControllerLocator; | |
IPhoenixHostBuilder UseViewLocator<TViewLocator>() where TViewLocator : IViewLocator; | |
IPhoenixHostBuilder UseViewLocator<TViewLocator>(TViewLocator viewLocator) where TViewLocator : IViewLocator; | |
IPhoenixHostBuilder UseLog<TLogAdapter>() where TLogAdapter : ILogAdapter; | |
IPhoenixHostBuilder UseLog<TLogAdapter>(TLogAdapter logAdapter) where TLogAdapter : ILogAdapter; | |
IPhoenixHostBuilder UseControllerFactory<TControllerFactory>() where TControllerFactory : IControllerFactory; | |
IPhoenixHostBuilder UseControllerFactory<TControllerFactory>(TControllerFactory controllerFactory) where TControllerFactory : IControllerFactory; |
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 interface IPhoenixHostBuilder | |
{ | |
IPhoenixHostBuilder UseControllerLocator<TLocator>() where TLocator : IControllerLocator; | |
IPhoenixHostBuilder UseControllerLocator<TLocator>(TLocator locator) where TLocator : IControllerLocator; | |
IPhoenixHostBuilder UseViewLocator<TViewLocator>() where TViewLocator : IViewLocator; | |
IPhoenixHostBuilder UseViewLocator<TViewLocator>(TViewLocator viewLocator) where TViewLocator : IViewLocator; | |
IPhoenixHostBuilder UseLog<TLogAdapter>() where TLogAdapter : ILogAdapter; | |
IPhoenixHostBuilder UseLog<TLogAdapter>(TLogAdapter logAdapter) where TLogAdapter : ILogAdapter; | |
IPhoenixHostBuilder UseControllerFactory<TControllerFactory>() where TControllerFactory : IControllerFactory; | |
IPhoenixHostBuilder UseControllerFactory<TControllerFactory>(TControllerFactory controllerFactory) where TControllerFactory : IControllerFactory; |
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 class ExampleTest | |
{ | |
private readonly List<KeyPress> outputs; | |
private readonly KeyProvider provider; | |
private readonly Subject<InterceptKeyEventArgs> subject; | |
private IProcessLookup processLookup; | |
public ExampleTest() | |
{ | |
outputs = new List<KeyPress>(); |
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 Task<User> GetUser() | |
{ | |
return NGitHub(_client.Users.GetAuthenticatedUserAsync) | |
} | |
public Task<T> NGitHub<T>(Func<Action<T>, Action<Exception>, GitHubRequestAsyncHandle> call) | |
{ | |
var _client = new GitHubClient | |
{ | |
Authenticator = new HttpBasicAuthenticator("user", "pass") |
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
using Microsoft.Office.Interop.Outlook; | |
using VSTOContrib.Outlook; | |
namespace GithubForOutlook.Logic | |
{ | |
public class GithubTaskAdapter | |
{ | |
private const string Githubissueid = "GithubIssueId"; | |
private readonly TaskItem outlookTask; | |
private bool? isGithubTask; |
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
[Fact] | |
public Task Fetch_WithBlogSelectedAndOneResult_DisplaysOnePost() | |
{ | |
// arrange | |
var result = new[] { new Post() }; | |
metaWeblogService | |
.GetRecentPostsAsync(Arg.Any<BlogSetting>(), Arg.Any<int>()) | |
.Returns(()=>Task.Factory.FromResult(new []{new Post()}); |
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
/// <summary> | |
/// Persists a Window's Size, Location and WindowState to UserScopeSettings | |
/// </summary> | |
public class WindowSettings | |
{ | |
[DllImport("user32.dll")] | |
static extern bool SetWindowPlacement(IntPtr hWnd, [In] ref WINDOWPLACEMENT lpwndpl); | |
[DllImport("user32.dll")] | |
static extern bool GetWindowPlacement(IntPtr hWnd, out WINDOWPLACEMENT lpwndpl); |
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 HttpResponseMessage Something() | |
{ | |
if (someErrorCondition) | |
{ | |
return new HttpResponseMessage<ErrorResponse>(new ErrorResponse("Blah error occured"), HttpStatusCode.500); // Whatever the code is | |
} | |
return new HttpResponseMessage<Result>(myResult); | |
} |
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
<entry> | |
<record>701</record> | |
<time>2012/07/15 09:02:40.463</time> | |
<type>Error</type> | |
<source>Editor or Editor Extension</source> | |
<description>System.InvalidOperationException: Could not find the component IColorThemeManager in the chain of component containers.
 at JetBrains.Application.Components.ComponentContainerEx.GetComponent[TInterface](IComponentContainer container)
 at JetBrains.VsIntegration.DevTen.Markup.VsQuickInfoSource.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 quickInfoContent, ITrackingSpan& applicableToSpan)
 at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate()
 at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start()
 at Microsoft.VisualStudio.Language.Intellisense.Implementation.DefaultQuickInfoController.OnTextView_MouseHover(Object sender, MouseHoverEventArgs e)
 at Microsoft.V |