Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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; 
 }