The Service type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Service | Overloaded. |
Methods
| Name | Description | |
|---|---|---|
| Batch |
takes a given feed, and does a batch post of that feed
against the batchUri parameter. If that one is NULL
it will try to use the batch link URI in the feed
| |
| BatchAsync |
takes a given feed, and does a batch post of that feed
against the batchUri parameter. If that one is NULL
it will try to use the batch link URI in the feed
| |
| CancelAsync |
this method cancels the corresponding async operation.
It sends still a completed event, but that event will then
have the cancel property set to true
| |
| CreateFeed | creates a new feed instance to be returned by
Batch(), Query() and other operations
Subclasses can supply their own feed implementation by
overriding this method.
| |
| Delete | Overloaded. | |
| EntrySend | Inserts an AtomBase entry against a Uri | |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| Get |
Returns a single Atom entry based upon its unique URI.
| |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| InitVersionInformation |
by default all services now use version 2 for the protocol.
this needs to be overridden by a service to specify otherwise.
| |
| Insert | Overloaded. | |
| InsertAsync |
inserts the entry asynchronous, you need to supply a valid and unique
token. Events will be send to the async delegates you setup on the service
object
| |
| internalInsert |
internal Insert version to avoid recursion in the template versions
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OnNewExtensionElement | eventchaining. We catch this by the baseFeedParsers, which
would not do anything with the gathered data. We pass the event up
to the user, and if he did not dicscard it, we add the entry to our
collection | |
| OnParsedNewEntry | eventchaining. We catch this by the baseFeedParsers, which
would not do anything with the gathered data. We pass the event up
to the user | |
| OnRequestFactoryChanged |
notifier if someone changes the requestfactory of the service.
This will cause the service to set the versionnumber on the
request factory to it's own
| |
| Query | Overloaded. | |
| QueryAuthenticationToken |
if the service is using a Google Request Factory it will use that
assuming credentials are set to retrieve the authentication token
for those credentials
| |
| QueryFeedAync |
the basic interface as an async version. This call will return directly
and you need to rely on the events fired to figure out what happened.
| |
| QueryOpenSearchRssDescription | object QueryOpenSearchRssDescription() | |
| QueryStreamAync |
the basic interface as an async version. This call will return directly
and you need to rely on the events fired to figure out what happened.
this version does not parse the response from the webserver but
provides it to you in the event
| |
| SetAuthenticationToken |
if the service is using a Google Request Factory it will set the passed
in token to the factory. NET CF does not support authsubtokens here
| |
| setUserCredentials |
Sets the credentials of the user to authenticate requests
to the server.
| |
| StreamSend | Overloaded. | |
| StreamSendAsync |
this is a helper function for to send binary data asyncronous to a resource
| |
| StringSend |
this is a helper function for external utilities. It is not worth
running the other insert/saves through here, as this would involve
double buffering/copying of the bytes
| |
| ToString | (Inherited from Object.) | |
| Update | Overloaded. | |
| UpdateAsync |
updates the entry asynchronous, you need to supply a valid and unique
token. Events will be send to the async delegates you setup on the service
object
| |
| WriteInputStreamToRequest |
write the current stream to an output stream
this is primarily used to write data to the
request stream
|
Properties
| Name | Description | |
|---|---|---|
| Credentials | accessor method public ICredentials Credentials | |
| ProtocolMajor |
returns the major protocol version number this element
is working against.
| |
| ProtocolMinor |
returns the minor protocol version number this element
is working against.
| |
| RequestFactory | accessor method public IGDataRequest Request | |
| ServiceIdentifier |
this returns the string that the services uses to identify the google service to use
when authentication with Google is required. Examples are "cl" for calendar, e.g.
|
Events
| Name | Description | |
|---|---|---|
| AsyncOperationCompleted | eventhandler, fired when an async operation is completed | |
| AsyncOperationProgress | eventhandler, fired when an async operation reports progress | |
| NewAtomEntry | holds the hooks for the eventing in the feedparser | |
| NewExtensionElement | eventhandler, when the parser finds a new extension element-> mirrored from underlying parser | |
| NewFeed | eventhandler, when the service needs to create a new feed |