In the recent async/await pattern, the recommendation is to end method names with "Async", such as "GetAsync()".
Now let's say I'm using the old asynchronous pattern, i.e. the one with the Begin/End method pair and IAsyncResult. And I have a method that wraps a call to that method, such as:
public void SendAsync(byte[] data)
{
this.stream.BeginWrite(...);
}
Also assume that the EndWrite method passed to BeginWrite is the same for all data, i.e. it would be a method in the same class.
In this case, is it wrong to name this method SendAsync() since it might be confused with the new async pattern?
voidhere, you're creating fire and forget methods? How do you know when it has completed the write operation? Seems like a recipe for disaster to me.BeginXXXandEndXXXnaming.. Also your method doesn't adhereAPMIt should returnIAsyncResult