public LightNodeOptions(AcceptVerbs defaultAcceptVerb, IContentFormatter defaultFormatter, params IContentFormatter[] specifiedFormatters) { DefaultAcceptVerb = defaultAcceptVerb; DefaultFormatter = defaultFormatter; SpecifiedFormatters = specifiedFormatters; UseOtherMiddleware = false; ParameterStringImplicitNullAsDefault = false; ParameterEnumAllowsFieldNameParse = false; StreamWriteOption = Server.StreamWriteOption.BufferAndWrite; ErrorHandlingPolicy = Server.ErrorHandlingPolicy.ThrowException; Filters = new LightNodeFilterCollection(); }
public LightNodeOptions(AcceptVerbs defaultAcceptVerb, IContentFormatter defaultFormatter, params IContentFormatter[] specifiedFormatters) { DefaultAcceptVerb = defaultAcceptVerb; DefaultFormatter = defaultFormatter; SpecifiedFormatters = specifiedFormatters; UseOtherMiddleware = false; ParameterStringImplicitNullAsDefault = false; ParameterEnumAllowsFieldNameParse = false; StreamWriteOption = Server.StreamWriteOption.BufferAndWrite; ErrorHandlingPolicy = Server.ErrorHandlingPolicy.ThrowException; OperationMissingHandlingPolicy = Server.OperationMissingHandlingPolicy.ReturnErrorStatusCode; Filters = new LightNodeFilterCollection(); OperationCoordinatorFactory = new DefaultOperationCoordinatorFactory(); ServerEngineId = Guid.NewGuid().ToString(); Logger = NullLightNodeLogger.Instance; }