Ejemplo n.º 1
0
            private IMessageEnvelope ProcessCreateLargeObject(IDictionary <string, object> metadata,
                                                              LargeObjectCreateRequest request)
            {
                try {
                    connector.AssertNotDisposed();
                    connector.AssertAuthenticated();

                    var objRef = connector.CreateLargeObject(request.ObjectLength);
                    return(connector.CreateEnvelope(metadata, new LargeObjectCreateResponse(request.ObjectLength, objRef)));
                } catch (Exception ex) {
                    // TODO: Log the error ...
                    return(CreateErrorResponse(metadata, ex));
                }
            }
            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));
                }
            }
Ejemplo n.º 3
0
            private IMessageEnvelope ProcessCreateLargeObject(IDictionary<string, object> metadata,
				LargeObjectCreateRequest request)
            {
                try {
                    connector.AssertNotDisposed();
                    connector.AssertAuthenticated();

                    var objRef = connector.CreateLargeObject(request.ObjectLength);
                    return connector.CreateEnvelope(metadata, new LargeObjectCreateResponse(request.ObjectLength, objRef));
                } catch (Exception ex) {
                    // TODO: Log the error ...
                    return CreateErrorResponse(metadata, ex);
                }
            }
Ejemplo n.º 4
0
            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);
                }
            }