System.Configuration.UpdateConfigHost.WriteCompleted C# (CSharp) 메소드

WriteCompleted() 공개 메소드

public WriteCompleted ( string streamName, bool success, object writeContext ) : void
streamName string
success bool
writeContext object
리턴 void
        public override void WriteCompleted(string streamName, bool success, object writeContext) {
            StreamUpdate streamUpdate = GetStreamUpdate(streamName, true);
            if (streamUpdate != null) {
                InternalConfigHost.StaticWriteCompleted(streamUpdate.NewStreamname, success, writeContext, false);
                //
                // Mark the write as having successfully completed, so that subsequent calls 
                // to Read() will use the new stream name.
                //
                if (success) {
                    streamUpdate.WriteCompleted = true;
                }
            }
            else {
                Host.WriteCompleted(streamName, success, writeContext);
            }
        }