Registers the specified client in the application. (the main method)
Namespace: Nemiro.OAuthAssembly: Nemiro.OAuth (in Nemiro.OAuth.dll) Version: 1.9.4.725 (1.9.4.725)
public static void RegisterClient(
string clientName,
OAuthBase client
)
public static void RegisterClient(
string clientName,
OAuthBase client
)
Public Shared Sub RegisterClient (
clientName As String,
client As OAuthBase
)
Public Shared Sub RegisterClient (
clientName As String,
client As OAuthBase
)
Parameters
- clientName
- Type: System String
The any name of the client. For example: Test, Release, Project #1, Ku!, Example.org etc.
- client
- Type: Nemiro.OAuth OAuthBase
The client instance.
OAuthManager.RegisterClient
(
"Test",
new GoogleClient
(
"00000000000000.apps.googleusercontent.com",
"000000000000000000000000"
)
);
OAuthManager.RegisterClient
(
"Test",
new FacebookClient
(
"00000000000000",
"000000000000000000000000"
)
);
OAuthManager.RegisterClient
(
"Release",
new GoogleClient
(
"1058655871432-83b9micke7cll89jfmcno5nftha3e95o.apps.googleusercontent.com",
"AeEbEGQqoKgOZb41JUVLvEJL"
)
);
OAuthManager.RegisterClient
(
"Release",
new FacebookClient
(
"1435890426686808",
"c6057dfae399beee9e8dc46a4182e8fd"
)
);
OAuthManager.RegisterClient
(
"Test",
new GoogleClient
(
"00000000000000.apps.googleusercontent.com",
"000000000000000000000000"
)
);
OAuthManager.RegisterClient
(
"Test",
new FacebookClient
(
"00000000000000",
"000000000000000000000000"
)
);
OAuthManager.RegisterClient
(
"Release",
new GoogleClient
(
"1058655871432-83b9micke7cll89jfmcno5nftha3e95o.apps.googleusercontent.com",
"AeEbEGQqoKgOZb41JUVLvEJL"
)
);
OAuthManager.RegisterClient
(
"Release",
new FacebookClient
(
"1435890426686808",
"c6057dfae399beee9e8dc46a4182e8fd"
)
);
OAuthManager.RegisterClient _
(
"Test",
New GoogleClient _
(
"00000000000000.apps.googleusercontent.com",
"000000000000000000000000"
)
)
OAuthManager.RegisterClient _
(
"Test",
New FacebookClient _
(
"00000000000000",
"000000000000000000000000"
)
)
OAuthManager.RegisterClient _
(
"Release",
New GoogleClient _
(
"1058655871432-83b9micke7cll89jfmcno5nftha3e95o.apps.googleusercontent.com",
"AeEbEGQqoKgOZb41JUVLvEJL"
)
)
OAuthManager.RegisterClient _
(
"Release",
New FacebookClient _
(
"1435890426686808",
"c6057dfae399beee9e8dc46a4182e8fd"
)
)
OAuthManager.RegisterClient _
(
"Test",
New GoogleClient _
(
"00000000000000.apps.googleusercontent.com",
"000000000000000000000000"
)
)
OAuthManager.RegisterClient _
(
"Test",
New FacebookClient _
(
"00000000000000",
"000000000000000000000000"
)
)
OAuthManager.RegisterClient _
(
"Release",
New GoogleClient _
(
"1058655871432-83b9micke7cll89jfmcno5nftha3e95o.apps.googleusercontent.com",
"AeEbEGQqoKgOZb41JUVLvEJL"
)
)
OAuthManager.RegisterClient _
(
"Release",
New FacebookClient _
(
"1435890426686808",
"c6057dfae399beee9e8dc46a4182e8fd"
)
)