Méthode | Description | |
---|---|---|
AddBindingParameters ( |
Implement the IEndpointBehavior interface to pass data at runtime to bindings to support custom behavior. In this implementation, this function will be kept empty.
|
|
AfterReceiveReply ( System &reply, object correlationState ) : void |
Implementation does schema validation for the MS-FSSHTTP defined element after a reply message is received.
|
|
ApplyClientBehavior ( |
Implements a modification or extension of the client across an endpoint. In this implementation, this function will add a custom inspector to the client endpoint to add the MS-WOPI headers and do the schema validation.
|
|
ApplyDispatchBehavior ( |
Implements a modification or extension of the service across an endpoint. In this implementation, this function will be kept empty.
|
|
BeforeSendRequest ( System &request, System channel ) : object |
Implementation will add the headers for MS-WOPI before a request message is sent to a service.
|
|
MessageInspector ( SharedContext context ) : System.IO |
Initializes a new instance of the MessageInspector class with the specified context.
|
|
Validate ( |
Implement to confirm that the endpoint meets some intended criteria. In this implementation, this function will be kept empty.
|
Méthode | Description | |
---|---|---|
AddHeader ( System &request, string headerKey, string value ) : void |
This method is used to add headers to the MS-WOPI requests.
|
|
SizeOfWOPIMessage ( Message message ) : int |
This method is used to calculate the message size.
|
public AddBindingParameters ( |
||
endpoint | The endpoint to modify | |
bindingParameters | System | The objects that binding elements require to support the behavior. |
Résultat | void |
public AfterReceiveReply ( System &reply, object correlationState ) : void | ||
reply | System | Specify the message to be transformed into types and handed back to the client application. |
correlationState | object | Specify the correlation state data. |
Résultat | void |
public ApplyClientBehavior ( |
||
endpoint | The endpoint that is to be customized. | |
clientRuntime | The client runtime to be customized. | |
Résultat | void |
public ApplyDispatchBehavior ( |
||
endpoint | The endpoint that exposes the contract. | |
endpointDispatcher | The endpoint dispatcher to be modified or extended. | |
Résultat | void |
public BeforeSendRequest ( System &request, System channel ) : object | ||
request | System | Specify the message to be sent to the service. |
channel | System | Specify the client object channel. |
Résultat | object |
public MessageInspector ( SharedContext context ) : System.IO | ||
context | SharedContext | Specify the context which will give information for MS-WOPI headers. |
Résultat | System.IO |
public Validate ( |
||
endpoint | The endpoint to validate. | |
Résultat | void |