public IDisposable Start(IServerInformation serverInformation, Func<IFeatureCollection, Task> application) { if (serverInformation.GetType() != typeof(StdioServerInformation)) { throw new ArgumentException("wrong server", "serverInformation"); } return new StdioServer(_input, _output, application); }
public IDisposable Start(IServerInformation serverInformation, Func <IFeatureCollection, Task> application) { if (serverInformation.GetType() != typeof(StdioServerInformation)) { throw new ArgumentException("wrong server", "serverInformation"); } return(new StdioServer(_input, _output, application)); }
public IDisposable Start(IServerInformation serverInformation, Func <IFeatureCollection, Task> application) { if (!(serverInformation.GetType() == typeof(ServerInformation))) { throw new ArgumentException(string.Format("The server must be {0}", ServerName), "serverInformation"); } _appDelegate = application; return(this); }
public IDisposable Start(IServerInformation serverInformation, Func<IFeatureCollection, Task> application) { if (!(serverInformation.GetType() == typeof(ServerInformation))) { throw new ArgumentException(string.Format("The server must be {0}", ServerName), "serverInformation"); } _appDelegate = application; return this; }