public ExportService() { try { _exportAddin = AddinsFactory.CreateExportAddin(); } catch (Exception ex) { WebOperationContext.Current.OutgoingResponse.StatusCode = HttpStatusCode.InternalServerError; WebOperationContext.Current.OutgoingResponse.StatusDescription = ex.Message; WebOperationContext.Current.OutgoingResponse.ContentType = "application/json"; throw; } }
public StreamExportHandler(AddinsFactory factory) { _exportAddin = factory.CreateExportAddin(); }
public ExportHandler(AddinsFactory factory, IHashingProvider hasing) { _exportAddin = factory.CreateExportAddin(); _hasing = hasing; }