private IMessageEnvelope ProcessCreateLargeObject(IDictionary <string, object> metadata, LargeObjectCreateRequest request) { try { connector.AssertNotDisposed(); connector.AssertAuthenticated(); var objRef = connector.CreateStreamableObject(request.ReferenceType, request.ObjectLength); return(connector.CreateEnvelope(metadata, new LargeObjectCreateResponse(request.ReferenceType, request.ObjectLength, objRef))); } catch (Exception ex) { connector.Logger.Error(connector, "Error while creating a large object."); connector.Logger.Error(connector, ex); return(CreateErrorResponse(metadata, ex)); } }