Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Registrar"/> class.
 /// </summary>
 /// <param name="stack">Stack used for communication.</param>
 /// <param name="repository">Repository storing users.</param>
 /// <exception cref="ArgumentNullException"><c>stack</c> or <c>repository</c> is <c>null</c>.</exception>
 public Registrar(ISipStack stack, IRegistrationRepository repository)
 {
     if (stack == null)
     {
         throw new ArgumentNullException("stack");
     }
     if (repository == null)
     {
         throw new ArgumentNullException("repository");
     }
     _stack = stack;
     _stack.Register(this);
     _repository    = repository;
     _authenticator = stack.Authenticator;
     MinExpires     = 600;
 }
Beispiel #2
0
 internal UserAgent(ISipStack stack)
 {
     _stack = stack;
     _stack.Register(this);
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Registrar"/> class.
 /// </summary>
 /// <param name="stack">Stack used for communication.</param>
 /// <param name="repository">Repository storing users.</param>
 /// <exception cref="ArgumentNullException"><c>stack</c> or <c>repository</c> is <c>null</c>.</exception>
 public Registrar(ISipStack stack, IRegistrationRepository repository)
 {
     if (stack == null)
         throw new ArgumentNullException("stack");
     if (repository == null)
         throw new ArgumentNullException("repository");
     _stack = stack;
     _stack.Register(this);
     _repository = repository;
     _authenticator = stack.Authenticator;
     MinExpires = 600;
 }
Beispiel #4
0
 internal UserAgent(ISipStack stack)
 {
     _stack = stack;
     _stack.Register(this);
 }