/// <summary> /// Initializes a new instance of the <see cref="ClientExceptionEventArgs" /> class. /// </summary> /// <param name="clientContext">The client context.</param> /// <param name="exception">The exception.</param> /// <param name="buffer"></param> /// <exception cref="System.ArgumentNullException">clientContext</exception> public ClientExceptionEventArgs(IServerClientContext clientContext, Exception exception, BufferSlice buffer) { if (clientContext == null) throw new ArgumentNullException("clientContext"); if (exception == null) throw new ArgumentNullException("exception"); if (buffer == null) throw new ArgumentNullException("buffer"); ClientContext = clientContext; Exception = exception; Buffer = buffer; CanContinue = true; }
/// <summary> /// Initializes a new instance of the <see cref="ClientExceptionEventArgs" /> class. /// </summary> /// <param name="clientContext">The client context.</param> /// <param name="exception">The exception.</param> /// <param name="buffer"></param> /// <exception cref="System.ArgumentNullException">clientContext</exception> public ClientExceptionEventArgs(IServerClientContext clientContext, Exception exception, BufferSlice buffer) { if (clientContext == null) { throw new ArgumentNullException("clientContext"); } if (exception == null) { throw new ArgumentNullException("exception"); } if (buffer == null) { throw new ArgumentNullException("buffer"); } ClientContext = clientContext; Exception = exception; Buffer = buffer; CanContinue = true; }
/// <summary> /// Assign the context which can be used to communicate with the client /// </summary> /// <param name="context">Context</param> void INetworkService.Assign(IServerClientContext context) { this.Context = (MessagingClientContext)context; }
/// <summary> /// Assign the context which can be used to communicate with the client /// </summary> /// <param name="context">Context</param> public void Assign(IServerClientContext context) { _context = context; }
/// <summary> /// Assign the context which can be used to communicate with the client /// </summary> /// <param name="context">Context</param> void IServerService.Assign(IServerClientContext context) { Context = (MessagingClientContext) context; }