/// <summary> /// Add the local server handler. /// </summary> static OAuth2HttpMessageHandler() { #if NET45 || NET46 CodeReceivers.Add( AuthorizeModes.LocalhostServer, new LocalhostCodeReceiver() ); CodeReceivers.Add( AuthorizeModes.OutOfBound, new OutOfBoundCodeReceiver() ); CodeReceivers.Add( AuthorizeModes.EmbeddedBrowser, new EmbeddedBrowserCodeReceiver() ); #endif }
/// <summary> /// Add the local server handler. /// </summary> static OAuth1HttpMessageHandler() { CodeReceivers.Add( AuthorizeModes.LocalhostServer, new LocalhostCodeReceiver() ); CodeReceivers.Add( AuthorizeModes.TestPassThrough, new PassThroughCodeReceiver() ); CodeReceivers.Add( AuthorizeModes.OutOfBound, new OutOfBoundCodeReceiver() ); CodeReceivers.Add( AuthorizeModes.OutOfBoundAuto, new OutOfBoundCodeReceiver() ); CodeReceivers.Add( AuthorizeModes.EmbeddedBrowser, new EmbeddedBrowserCodeReceiver() ); }