/// <summary>
 /// Creates a new instance of <see cref="AttributeExchange"/>.
 /// </summary>
 /// <param name="client">Parent <see cref="ClientCore"/> object to attach.</param>
 public AttributeExchange(ClientCore client)
 {
     _Parent = client.StateContainer;
     _Parent.RegisterPlugIn(this);
     Mode = AttributeExchangeMode.Fetch;
     _RequestData = new List<AttributeExchangeItem>();
 }
 /// <summary>
 /// Creates a new instance of <see cref="AttributeExchange"/>.
 /// </summary>
 /// <param name="state">Parent <see cref="StateContainer"/> object to attach.</param>
 public AttributeExchange(StateContainer state)
 {
     _Parent = state;
     state.RegisterPlugIn(this);
     Mode = AttributeExchangeMode.Fetch;
     _RequestData = new List<AttributeExchangeItem>();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a new instance of Yadis.
 /// </summary>
 /// <param name="state">Parent <see cref="StateContainer" /> object.</param>
 public Yadis(StateContainer state)
 {
     Parent = state;
     state.RegisterPlugIn(this);
 }
 /// <summary>
 /// Creates an instance of AuthenticationPolicy extension.
 /// </summary>
 /// <param name="client">The parent <see cref="ClientCore"/> object.</param>
 public AuthenticationPolicy(ClientCore client)
 {
     _Parent = client.StateContainer;
     _Parent.RegisterPlugIn(this);
     _PreferredPolicies = new List<Uri>();
 }
 /// <summary>
 /// Creates an instance of AuthenticationPolicy extension.
 /// </summary>
 /// <param name="state">The parent StateContainer object.</param>
 public AuthenticationPolicy(StateContainer state)
 {
     _Parent = state;
     _Parent.RegisterPlugIn(this);
     _PreferredPolicies = new List<Uri>();
 }
 /// <summary>
 /// Creates a new Authentication plugin and registers it with ClientCore object.
 /// </summary>
 /// <param name="client">The <see cref="ClientCore"/> object to attach.</param>
 public IdentityAuthentication(ClientCore client)
 {
     _Parent = client.StateContainer;
     _Parent.RegisterPlugIn(this);
 }
 /// <summary>
 /// Creates a new Authentication plugin and registers it with a StateContainer object.
 /// </summary>
 /// <param name="state">Parent <see cref="StateContainer"/> object to attach.</param>
 public IdentityAuthentication(StateContainer state)
 {
     _Parent = state;
     _Parent.RegisterPlugIn(this);
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Create a new instance of OAuthExtension.
 /// </summary>
 /// <param name="core">The OpenIdClient to use.</param>
 /// <param name="oauthClient">The OAuth Consumer to use.</param>
 public OAuthExtension(ClientCore core, OAuthClient oauthClient)
 {
     _Parent = core.StateContainer;
     _Parent.RegisterPlugIn(this);
     OAuthClient = oauthClient;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Create a new instance of OAuthExtension.
 /// </summary>
 /// <param name="state">OpenIdClient's StateContainer object.</param>
 /// <param name="oauthClient">The OAuth Consumer to use.</param>
 public OAuthExtension(StateContainer state, OAuthClient oauthClient)
 {
     _Parent = state;
     state.RegisterPlugIn(this);
     OAuthClient = oauthClient;
 }
 /// <summary>
 /// Creates a new SimpleRegistration plugin and registers it with an <see cref="ClientCore"/> object.
 /// </summary>
 /// <param name="client">The <see cref="ClientCore"/> object to attach.</param>
 public SimpleRegistration(ClientCore client)
 {
     _RequiredFields = new List<string>();
     _OptionalFields = new List<string>();
     _Parent = client.StateContainer;
     _Parent.RegisterPlugIn(this);
 }
 /// <summary>
 /// Creates a new instance of <see cref="SimpleRegistration"/>.
 /// </summary>
 /// <param name="state"><see cref="StateContainer"/> object to attach.</param>
 public SimpleRegistration(StateContainer state)
 {
     _RequiredFields = new List<string>();
     _OptionalFields = new List<string>();
     _Parent = state;
     _Parent.RegisterPlugIn(this);
 }